1479 posts The right tools with none of the gimmicks
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more
PixelBin says

I’ve been trying to generate square thumbnails (let’s say 180px by 180px) with it for the past few days, and all I get is browser-resized, same ratio thumbnail (180px by 112px in my case). It does not do any back-end cropping or anything! I’ve been accomplishing perfect (and easy) thumbnails with a TimThumb script, but I figured since there’s an official option for a thumbnail now, I should provide support for it in my theme. No such luck. It is either the dumbest thing ever, or I am missing something.

Here is my code:

if (function_exists('add_theme_support')) {
    add_theme_support('post-thumbnails');
}

set_post_thumbnail_size(180, 180, true);

What I am getting from my 500px by 333px image that I uploaded to Wordpress is 180px by 119px browser-resized image (so if I click View Image, it will show the huge 500px by 333px image). Could someone please tell me what I am doing wrong?

Also, removing ‘true’ from set_post_thumbnail_size does absolutely nothing, even though it should switch from ‘zoom’ resizing to ‘crop’ resizing.

Thanks!

831 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
tigerlabs says
380 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
celtathemes says

Also take a look at this one: http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/

I’ve read it and now I have no problems working with thumbnails.

242 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
ATLChris says

You have to regenerate all the thumbnails again. Anything that was already uploaded prior to the new post thumbnail functionality has to be regenerated.

Add the “Regenerate Thumbnails” plugin and run that. That will take all pre-existing images, and will generate the new images sizes.

1479 posts The right tools with none of the gimmicks
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more
PixelBin says

I looked through every article about it already and none of them are helping. I also installed the plugin from that article but it had no effect on my problem. Not only does it not crop to the exact dimensions like it should but it does not resize the image at all, it just sets a smaller size to be displayed in the browser.

688 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
_rg_ says

something on your php.ini or on the chmod folders…. i´m sure. the most probable the plugin cant write the image…. look around that.

242 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
ATLChris says
I looked through every article about it already and none of them are helping. I also installed the plugin from that article but it had no effect on my problem. Not only does it not crop to the exact dimensions like it should but it does not resize the image at all, it just sets a smaller size to be displayed in the browser.

Did you run the plugin, or just install it? You have to run it under tools for it to work.

1744 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VisualSharing says

I’m still not familiar with WP, but… is this what you’re maybe looking for?

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