Default image sizes – dimensions and filenaming.What images does WordPress create during the upload process, exactly?.Understanding the Media Settings size options.WordPress Media basics – image handling.There’s a lot of information in this long, long article, so here are some links to help you navigate around it! At the same time, I thought it would be useful to take another look at how WordPress handles uploaded images and its default image sizes. The purpose of this article is to give detailed information on how to use Featured Images and the add_image_size() function and, with examples, demonstrate the consequences of using the various cropping and resizing options available in this function. I also found out that, sometimes, WordPress does not behave as intuitively as one might expect or, to be more precise, certain behaviours are not so obvious as one might think – such as how best to use the WordPress add_image_size() function to create additional image sizes. Recently, I have been spending a lot of time developing some new automation functionality for my Dynamic Content Gallery plugin, working out how best to get the plugin to use WordPress’ Featured Image functionality and to automatically create the correct additional image sizes when adding and uploading images via the WP Admin UI.ĭuring this work I discovered, perhaps to my shame, that I didn’t know quite as much about Media handling in WordPress as I thought I did.
0 Comments
Leave a Reply. |