Doing away with manual custom fields
I’m capturing the steps to upload and crop various formats of thumbnails for WordPress entries. It is one of the main features I’m building for use in my free WordPress theme. Previously, my solution for assigning thumbnails to WordPress entries was via “custom fields“. After a while of using custom fields, it began to feel tedious and I looked for a better way to handle thumbnails.
On top of that, one of my themes in development allows the use of up to 3 thumbnail formats (widescreen, square and rectangle) for every WordPress entries. Can you imagine every time you write a post, you have to fire up Photoshop to create three thumbnails. Each of them in different dimensions and aspect ratios. Uploading them to your blog. And finally copy-and-paste their URLs to custom keys. It certainly needs a more streamlined and convenient way of handling thumbnails. Manually doing it the custom field way just won’t cut it in the long run.
On-the-fly upload, resize and crop thumbnails
As you can see from the video clip, bloggers can upload a jpg image file, crop it and save it as a thumbnail. Once the blogger clicks ‘Save’ thumbnail, the URL is automatically assigned to a designated custom field behind the scene. Hence, the process of entering the thumbnail’s URL into a custom field has been automated.
On top of that, if you’re an experienced theme developer, you can configure more than one thumbnail to be used for each post. In the video clip, I’ve configured up to three thumbnails for each post.
I hope to wrap up this feature soon and implement it into my WordPress theme. Do drop by again. Instead of building this into my themes, I’m going to develop it as a WordPress plugin. I’ll be hosting the plugin at WordPress official plugin directory and the more information can be found in my next post: WP Post Thumbnail - WordPress Plugin
Note: Bear with the lacklustre video clip quality as this is my first time recording and producing an embedded flash video using Camtasia Studio 5. There’s still a slight learning curve despite it already being very user-friendly. I hope to be able to zoom-and-pan smoother, add narratives and find the best settings to produce Youtube High Definition clips soon.

Whoooh that’s nice

Any plans for releasing a plug-in which could offer the same functionality? I believe it would make you a god in the WP community
Wow this is definitely a cool features for wordpress since you can choose specific portion of the image to be croped. How about some beta tester?
mkjones
Yes I decided to make it into a WordPress plugin last week. Took me while to decide because if it is developed into a plugin, I would have to take into consideration how it can be used by two different kind of users: typical bloggers and WordPress theme developers too.
Eligio
As soon as it’s usable. Again, some considerations when making it into a plugin still need to be sorted out. For instance, I coded this into my theme to fulfill the task of handling 3 different thumbnails per post. I could afford to hard code the thumbnails configuration just for my own theme. Now that I’m making a plugin out of it, I need to make thumbnail(s) configuration flexible to suit the requirement of different themes, different WordPress theme developers.
mkjones & Eligio
Thanks and I’m glad you like the functionality. I’ll be blogging about the plugin’s progress and status. I hope you guys keep in touch.
Unbelievably cool! Can us fans get an early copy to work with? I would love to beta test this theme.
Very interested in this plug-in as well. I’d love to find an easy way to insert thumbnails for my front page posts. Reverse engineering the built-in proprietary-theme solutions (such as you were making for your theme) is about as tedious as the custom fields themselves.
Thanks for your efforts!! =)
Simply Amazing… what else can I say? Is that jCrop I see in there? I want this… yesterday
WOW man, i really like to have this plugin. I’m bored with the upload+copyandpaste+customfiled system.
Stunning, this plugin will win awards…
Just quickly, can photos be uploaded via URL? If not this would be a great feature.
Marty
Thanks to you I just realise I have an alternative jQuery image cropper in jCrop. I’m using Image Area Select plugin by MichaĆ Wojciechowski (http://odyniec.net/projects/imgareaselect/).
payjisan
Get a photo via URL … sounds like a job for curl. I’ll put that feature on my to-do list.
Priorities will be given to sorting out plugin errors and bugs in the meantime before I fool around with new features or interface.
Stan, that’s a very cool plugin and I’m definitely looking forward to it. This way even the Wordpress designers won’t have to fiddle with Custom Fields and lets authors to focus more on the content.
Oh yeah, I’d like to make a pre-requisite if this is suppose to help replace custom fields for images. The ability to set the size of the images would be best - in addition to selecting wide, rectangle and square.
This is fantastic! It would be absolutely invaluable to me. If you set up a PayPal donate button I’ll def help you out with a donation.
Thanks for sharing, this is great…