107 posts Too Much is Never Enough
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Bought between 1 and 9 items
  • Referred between 100 and 199 users
  • Has been a member for 3-4 years
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
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 50 and 99 users
  • Russian Federation
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
  • Exclusive Author
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 3-4 years
  • Referred between 500 and 999 users
  • Bought between 1 and 9 items
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 been a member for 6-7 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Romania
  • Referred between 100 and 199 users
  • Bought between 100 and 499 items
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!

1426 posts
  • Envato Staff
  • Has been a member for 5-6 years
  • Senior Reviewer
  • Sold between 10 000 and 50 000 dollars
  • Attended a Community Meetup
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
+10 more
kailoon Reviewer says

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

648 posts
  • Power Elite Author
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Has been a member for 3-4 years
  • Author had a File in an Envato Bundle
  • Exclusive Author
  • Referred between 500 and 999 users
  • Bought between 10 and 49 items
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
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+2 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 :(

648 posts
  • Power Elite Author
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Has been a member for 3-4 years
  • Author had a File in an Envato Bundle
  • Exclusive Author
  • Referred between 500 and 999 users
  • Bought between 10 and 49 items
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