115 posts Too Much is Never Enough
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has referred 200+ members
+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!

1442 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.

852 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Has sold $2M+ on Envato Market
  • 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 :(

852 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Has sold $2M+ on Envato Market
  • 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by