The 3rd possibility is the control of the images size with an array of height and width:
For this purpose we suppose that the settings for thumbnail is 150×150, for medium 300×200 and for large 600×400.
We see that the image proportions are always maintained, even if one specifies crooked values.
For the Theme Designers is this not necessarily easier, because no one knows what the user will put in his settings o his library. One way to approach this problem, to query the options for the various sizes:
Here another example: If the size of a thumbnail is bigger than 100×100 and crop is activated, then the thumbnail should be resized to 100×100, otherwise use the original thumbnail.
In wordpress database we are just storing the image(attachment) information. For thumbnail there is functions. if size 150px to 150px then image will be called as image_name-150×150.jpg. If thumbnail sizes defined in functions.php file then that much thumbnails will be created in uploads directory.
Great plug-in, the code is provide is very useful to us. How integrate images into content with the_post_thumbail?
Thanks for this information, I am wodnering if you know how to set the thumbnail picture in a code…perhaps something like update_metadata or so
Hi everyone.
I’m trying to find which table the post thumbnails is stored in the WordPress database, but i`m not having sucess to find it.
Can anyone help-me?
In wordpress database we are just storing the image(attachment) information. For thumbnail there is functions. if size 150px to 150px then image will be called as image_name-150×150.jpg. If thumbnail sizes defined in functions.php file then that much thumbnails will be created in uploads directory.