Need help? Check out our Support site, then


Specify image size in the image address

  1. Hi,

    on wordpress.com, images can be served in different sizes based on the address (query string). For example http://alecs1.files.wordpress.com/2009/05/18-jos2.jpg?w=600. I put w=600 and my image is scaled automatically to 600 pixels on width, saving load times.

    This does not work on my WordPress installation however, http://cetaura.com/wordpress/wp-content/uploads/2009/05/18-jos2.jpg?w=600

    How could I enable this? Or what keywords should I search for? I searched for "wordpress set image size in query string" and variations, but to no success.

    Thanks

    The blog I need help with is cetaura.com.

  2. The blog you specified at cetaura.com does not appear to be hosted at WordPress.com.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you'll find help at the WordPress.org forums.

    If you don't understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It'll help people to answer your question.

    This is an automated message.

  3. http://cetaura.com is not a free blog from being free hosted by wordpress.COM. It's a wordpress.ORG install and we cannot help your with it on this forum. Click the "powered by wordpress" link in the footer and it leads here http://word'press.ORG/ You need to post to the correct support forum for your software. That's where the support bot is pointing you to > http://wordpress/ORG/support/

  4. Thanks, I understand. But I'm actually asking about how wordpress.com does it, so I can do the same on my self hosted site.

  5. Thanks, I understand. But I'm actually asking about how wordpress.com does it, so I can do the same on my self hosted site.

    As timethief mentioned, this a question that should be asked on the WordPress.org support forums as you're looking to extend the functionality of your WordPress.org blog.

    But since I'm already replying, I may as well answer your question. :)

    Reminder to everyone else: None of the below applies to blogs hosted on WordPress.com!

    We do it through a bunch of complicated server scripts that wouldn't really work on your own server. However TimThumb is a really popular script that provides similar functionality, but scripts like that can easily be used by someone to attack your site by requesting tons and tons of different sized images forcing your server to spend time generating all those thumbnails. It's not an issue for us because we have hundreds of servers.

    A better solution than trying to make thumbnails using a query string is to just create additional predefined thumbnail sizes using the core WordPress function add_image_size(). Mark Jaquith also has a really good guide about featured images (aka post thumbnails) and additional image sizes that's worth reading.

    That's the recommended way to create additional thumbnail sizes.

    And if you need to create those new thumbnail sizes for previously uploaded images, try my Regenerate Thumbnails plugin.

    Good luck and if you have any more questions, feel free to start a thread on the WordPress.org support forums. :)

Topic Closed

This topic has been closed to new replies.

About this Topic