Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134322

seansean11 on "Passing A Size (Array) to the_post_thumbnail Function"

$
0
0

Hey,

I've been recently testing out different variations of resizing images in WordPress, in my quest to create post thumbnails without having to generate an extra uploaded image by means of "add_image_size" in functions.php. This has led me to tools such as WPthumb which actually works pretty well for generating thumbnails on-the-fly.

However, I have always been confused by the option that is available to pass a "size array" to the post thumbnail function.

Ex:
<?php the_post_thumbnail( array(100,100), true ); ?>

I'm pretty sure WordPress claims to not have built in on-the-fly image generation, so I don't understand what this function is actually doing behind the scenes. Could I actually use this for on-the-fly generated images? Since I'm not using a registered image size, how is it resizing the image, and where is it being stored?

Thank You,
Sean


Viewing all articles
Browse latest Browse all 134322

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>