Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7903383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:44:13+00:00 2026-06-03T09:44:13+00:00

NOTE: This question is tricky (to decide whether it pertains to SO or not),

  • 0

NOTE: This question is tricky (to decide whether it pertains to SO or not), but this is no simple WordPress question.

I’ve heard that WordPress.com has a separate layer of infrastructure (Nginx based servers) for images that is pretty much independent of the hosted WordPress blogs.

The thing is, any image on a WordPress.com blog can be resized simply by appending w (width) and/or h (height) parameters like so:

http://serenescribe.files.wordpress.com/2012/04/cropped-p1000206.jpg?w=400
http://serenescribe.files.wordpress.com/2012/04/cropped-p1000206.jpg?h=200

Is the script available on the web? (Because, they always say “We’re strong believers in Open Source, and we try to open source everything we can.”)

Most of the dynamic image resizing scripts out there are insecure and very vulnerable to attacks (Tim Thumb), or badly written, or come at the cost of performance. Is/Are there any good ones?

PS: There are probably several other dynamic image resizing scripts, like TimThumb, for example. But I am only interested in what WordPress.com blogs use.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:44:14+00:00Added an answer on June 3, 2026 at 9:44 am

    (1) Use TimThumb, then re-sizing your images is as simple as appending some parameters:

    http://example.com/timtumb.php?src=wp-content/uploads/2010/03/high_res_horsey.png&w=300&h=100

    (2) Then add these rewrite rules in your site’s root .htaccess file:

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_URI} \.(gif|png|jpg|jpeg)
    RewriteCond %{QUERY_STRING} (w|h)=(.*)$
    RewriteRule (.*) /full/path/to/timthumb.php?src=$1&%1=%2&%3=%4 [L]
    

    Quick breakdown of the rules:

    1. Check that the URI exists as a file.
    2. Check that the URI in question is an image. Expand to other formats as needed.
    3. Check that one or both of width and height are being altered.
    4. Pass the file following to timthumb as variables:
      • $1 = filename
      • %1 = w or h
      • %2 = value of w or h
      • %3 = w or h
      • %4 = value of w or h

    (3) Now, you can pretty much resize your images as you would on WordPress.com, i.e. like so:

    http://example.com/wp-content/uploads/2010/03/high_res_horsey.png?w=300&h=100

    From http://www.myrant.net/2011/03/07/mimicking-wordpress-coms-image-resize-uris/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: This is similar to this question but it is not the same. I
(note that this question is not about CAS, it's about the May fail spuriously
Note: This question has broadened in scope from previous revisions. I have tried to
Note: this question is related to this one , but two years is a
Please note that this question is from 2008 and now is of only historic
Note: This question originally applied to Xapian , but due to cross-platform issues and
I have this extremely simple splash page here: http://iph0wnz.com It has the main graphic
(NOTE: This question is not about escaping queries, it's about escaping results) I'm using
Please note this question is specific to WCF Data Services not normal Wcf Service.
Note: This question has been originally posted by Lahiru Gunathilake as an answer to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.