Plugin Design – Generating Thumbnails
-
Hi,
I’ve built a WordPress plugin that adds a new section to a post that can optionally be filled out to show the detail’s of a book at the top of the post. The plugin contains its own functionality for uploading the book’s cover image.
I’m trying to upgrade the plugin to provide the option for showing a thumbnail of the book’s cover in the archives, and I’m struggling with the best way to do this. Here are the options that I think I have:
- Use the Featured Image as the thumbnail.
- Resize the image when the user uploads the cover using the plugin’s uploader.
The problem with using the Featured Image is that it is outside of the plugin’s functionality, and I can’t rely on people having this enabled in their theme or even using the Featured Image for the book’s cover. For that reason, I really don’t want to do things this way.
The disadvantage of the second option is that the user has to use the plugin’s upload functionality in order for the thumbnail to be generated.
Can anyone see a third option where thumbnails can be generated for the book covers, even if those covers weren’t uploaded using the plugin’s functionality?
Thx.
- The topic ‘Plugin Design – Generating Thumbnails’ is closed to new replies.