107 posts Too Much is Never Enough
    Has referred 100+ members Has sold $125,000+ on Envato Market Has collected 1+ items on Envato Market Elite Author: Sold more than $75,000 on Envato Market
+3 more
premitheme says

Thank you everybody :)

i already use add_image_size and then grab that size with the appropriate function for the use. But I use TimThumb (for now) for images with dynamic size (for example giving the user an option to decide the height).

But you gave me a good idea, since the most optional value I use in my themes is the height (mostly the width is predefined and should be fixed), so i can use add_image_size with the needed max width and semi-open height (say 9999), this will generat an image size with the right width with its auto height, then I can achieve the optional height with css.

What do you think? any one tried that successfully before?

118 posts
    Has been part of the Envato Community for over 3 years Has referred 50+ members Has collected 10+ items on Envato Market Sells items exclusively on Envato Market
+1 more
ZenThemes says
premitheme said
Thank you everybody :)

i already use add_image_size and then grab that size with the appropriate function for the use. But I use TimThumb (for now) for images with dynamic size (for example giving the user an option to decide the height).

But you gave me a good idea, since the most optional value I use in my themes is the height (mostly the width is predefined and should be fixed), so i can use add_image_size with the needed max width and semi-open height (say 9999), this will generat an image size with the right width with its auto height, then I can achieve the optional height with css.

What do you think? any one tried that successfully before?

Or you could just leave the height field blank, instead of ‘450’ it should be ’’. I guess it doesn’t break things, haven’t tested yet.

4 posts
    Has referred 500+ members Has sold $250,000+ on Envato Market Has collected 1+ items on Envato Market Made it to the Authors' Hall of Fame
+3 more
wpbandit says

With add_image_size if you set the height or width to 0, it should autoresize that dimension of the image. The main issue to be concerned with is that multiple images are created for each image uploaded. If you have 5 custom images using add_image_size, a person can potentially have 8 images created for each image they upload. The 3 standard sizes – thumbnail, medium, large – plus the five you specified.

78 posts
    Has referred 100+ members Has sold $40,000+ on Envato Market Has collected 100+ items on Envato Market Has been part of the Envato Community for over 6 years
+2 more
adiacone says

Yeah, add_image_size + get_the_post_thumbnail works nicely for post thumbnails. What about if you wanted to resize a certain image from the media library, that maybe isn’t part of that post / page? I use vt_resize now, but would love to know what you guys are using. Thanks!

1429 posts
    Has referred 200+ members Has sold $40,000+ on Envato Market Has collected 1+ items on Envato Market Member of the Envato Team
+12 more
kailoon Envato team says

I’d recommend to utilize the WordPress default built-in resizer.

666 posts
    Power Elite Author: Sold more than $1M on Envato Market Has been part of the Envato Community for over 3 years Has sold $1M+ on Envato Market and is now a Power Elite Author Made it to the Authors' Hall of Fame
+5 more
Dream-Theme says

On one hand using WordPress native resizer is the “right” way to do it. To cut the long story short, it will allow you not to wary about additional setup required for theme installation. E.g. your buyers will have no need to set CHMOD on TimThumb cache folder manually – so you will have less support requests. In other words, using native WP tools insure that your theme will work on any wordpress-powered site without additional setup.

On the other hand using TimThumb allows you to store all additional images in single folder, so your buyers will be able to remove unnecessary images with theme itself. Also TimThumb automatically clears its cache folder from unnecessary images. This is impossible with standard WP tools (and “uploads” folder soon will become littered with unnecessary images).

For our newest themes we developed more intelligent algorithm that uses standard image sizes (if they suits theme) or timthumb (if resize required).

P.S. All IMHO :)

3007 posts
    Has been part of the Envato Community for over 4 years Has referred 200+ members Has sold $250,000+ on Envato Market Had an item featured in an Envato Bundle
+7 more
duotive says
Dream-Theme said
For our newest themes we developed more intelligent algorithm that uses standard image sizes (if they suits theme) or timthumb (if resize required). P.S. All IMHO :)

That will only give you the same amount of support questions :) I am looking for ideas too for this one! I want to use add_image_size but what do i do with a slideshow shortcodes? I cannot resize images given to the shortcode with wordpress :(

666 posts
    Power Elite Author: Sold more than $1M on Envato Market Has been part of the Envato Community for over 3 years Has sold $1M+ on Envato Market and is now a Power Elite Author Made it to the Authors' Hall of Fame
+5 more
Dream-Theme says
duotive said
That will only give you the same amount of support questions :)

Yep:) But this allows to maximally optimize server resources usage (CPU, memory, disk space). Also it will allow not to create tons of junk in uploads folder and DB

by
by
by
by
by
by