Techniqued- Technoloy, Review and Tutorials
  • Android
  • Freewares
  • Tutorial
  • Windows 11
  • macOS
No Result
View All Result
Techniqued- Technoloy, Review and Tutorials
  • Android
  • Freewares
  • Tutorial
  • Windows 11
  • macOS
No Result
View All Result
Techniqued- Technoloy, Review and Tutorials
No Result
View All Result

How to Resize Images on the Fly in WordPress

Nirmal by Nirmal
March 1, 2011
in Wordpress
6
Share on FacebookShare on Twitter

We have seen many themes in WordPress have the capability to resize images without having to do it manually. TimThumb is a PHP Script script released by Darren Hoyt which can resize images to your desired size on the fly without having to manually resize it. With this script, you can easily resize images by just calling the script with the parameter (height and width) and it returns the resized image.

wordpress-logo-hoz-rgb

How to use the script?

1. Simply copy the source code into a new document called ‘timthumb.php’, place it in a folder on your site server in any folder or create a new folder called scripts

2. Call the image like this in the following format

<img src=”/scripts/timthumb.php?src=/images/whatever.jpg&h=150&w=150&zc=1″ alt=””>

Here replace whatever.jpg with the image name you want to resize and also use your desired size and height.

Parameters accepted by this script;

  • w: width
  • h: height
  • zc: zoom crop (0 or 1)
  • q: quality (default is 75 and max is 100)

More information on this script available here. You can also check out a live demo of the script in action.

Tags: Tips and TricksTutorialsWordpressWordPress Tips
ShareTweetSendSend
Previous Post

Free Partition Manager- Partition Wizard Home Edition

Next Post

Easy to Use iPod Video Converter

Related Posts

Wordpress

How To Fix “The Link You Followed Has Expired” Error in WordPress

December 9, 2020
Wordpress

Install WordPress Locally on Windows with Local

February 24, 2020
Windows 10

How to Create a Windows 10 App for WordPress Blog

March 21, 2016
Wordpress

7 Ways to Install WordPress Locally on Windows or Mac

January 9, 2015
Wordpress

5 Ways To Reduce Spam Comments Spam On WordPress

January 8, 2015
Wordpress

10 Best WordPress Backup Services for your Blog

January 5, 2015

Comments 6

  1. Tech-Freak Stuff says:
    16 years ago

    Good tip! thanks, I recently moved to wordpress and needed to know about the Image management! this new script will surely be of great use.

    Reply
  2. Dzinepress says:
    16 years ago

    you always help about new technology.

    Reply
  3. AnandK says:
    16 years ago

    Nice. I currently use fastimageresizer and then upload images.

    Reply
  4. DemoGeek says:
    16 years ago

    That seems to be useful on some occasions but not all…many times the images needs to be resized manually to make it look the way you want it to look and this boilerplate resize sometimes could mess-up the look and feel of the image if you pass-in the wrong width and height. It would be interesting if the script can resize it based on a percentage.

    Reply
  5. andrew says:
    15 years ago

    Use http://www.ezyimageresizer.com to batch resize images in the browser (runs as a java applet)

    Reply
  6. outcall escort says:
    15 years ago

    It was rather interesting for me to read the article. Thank author for it. I like such themes and anything that is connected to them. I definitely want to read a bit more on that blog soon. BTW, rather good design you have here, but what do you think about changing it every few months?

    Whitny Karver

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Latest Articles

How to Fix “Installation can’t continue” when trying to Update Nvidia Graphics Drivers

Download Windows 11 24H2 ISO (Offline Installer)

Can I Run Windows 11 without Activating

How to Use Snapchat on PC

How to Delete YouTube Search and Watch History on iPhone

How to Use Energy Saver on Windows 11

Techniqued- Technoloy, Review and Tutorials

© 2021 Techniqued - Technology, Tips, Tricks and Reviews

Navigate Site

  • About Us
  • Advertise with us
  • Contact Us
  • Copyright Policy
  • Disclaimer

Follow Us

No Result
View All Result
  • Android
  • Freewares
  • Tutorial
  • Windows 11
  • macOS

© 2021 Techniqued - Technology, Tips, Tricks and Reviews

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.