Results 1 to 3 of 3

Thread: Is it possible to reduce a file's quality with timthumb.php?

  1. #1
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default Is it possible to reduce a file's quality with timthumb.php?

    Does anyone know how to just reduce a file's quality? I tried &q=XX but it didn't do it. So something like this would only make the image look fuzzy:

    <img src="/timthumb.php?src=/images/myimage.png&w=400&h=350&q=90">

    This didn't work either:

    <img src="/timthumb.php?src=/images/myimage.png&q=90">

    Any ideas?

    PS I know I can set quality within the timthumb.php file. It's set to 90 I believe by default. I want to change quality individually. Adding &q=XX somehow makes the images look really fuzzy.
    Last edited by qwikad.com; 06-21-2014 at 01:58 AM. Reason: added more stuff

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I think that the resulting fuzzy images indicate that the quality setting is in fact working - just not in the way you hoped.

    I would suggest that the blurring has more to do with the GD library that timthumb uses. I experimented with image cropping and thumbnail generation a few months ago and got much better/crisper results using ImageMagik instead - I did not use a timthumb equivalent though (I wrote a custom script for the client) so I cannot recommend anything directly, but you can find lots of tutorials online https://www.google.com/search?q=gd%2...%20imagemagick and https://www.google.com/search?q=gd%2...%20imagemagick

    This tutorial looks pretty nice http://coffeeshopped.com/2009/01/cre...nd-imagemagick
    Last edited by Beverleyh; 06-21-2014 at 11:11 AM.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default

    Greatly appreciated. Will look into it. Sounds like it can be a good alternative.

Similar Threads

  1. Replies: 4
    Last Post: 09-29-2013, 12:39 PM
  2. TimThumb not working on my WP site
    By rususorinvick in forum PHP
    Replies: 2
    Last Post: 06-27-2012, 10:24 PM
  3. Replies: 1
    Last Post: 02-26-2009, 04:04 PM
  4. Gif animation quality
    By VonDuck in forum Graphics
    Replies: 20
    Last Post: 03-20-2008, 04:07 PM
  5. Best quality traffic
    By sofy60 in forum The lounge
    Replies: 0
    Last Post: 03-30-2005, 05:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •