29 thoughts on “Using TimThumb Part 3: Image Filters Leave a comment

  1. Ben,

    Looking forward to being able to crop the thumbnails from the top center! Hoping to read about it soon. I modified timthumb using some code I found on studio-xl.com, but it made the image go all black… in fact, I wanted to use the f=2 option to turn my thumbnails to grayscale, but that also results in a black image. Any clues on how to fix that one?

    Thanks!

  2. Thank you so much for this wonderful script! It works great and I’m having such fun with it. Just one feature request: please, oh please, could you provide a more gentle sharpening option (e.g. s=2), or the ability to add strength arguments to the sharpening filter? The sharpening filter is extremely useful but the default is too strong for my images. I would be eternally grateful!

  3. Hi,

    Great script. One tiny issue, however. The value of the `a` parameter in the ´rgba´of the colorize function does not have any effect…

    Regards,

    James

    1. Hey there – thanks for the report. If you could post bugs on the Google code site then I will have a record of them and be more likely to remember to sort them out 🙂

  4. Hi,

    I’ve been stupid … the value of the `a` parameter in the ´rgba´of the colorize function does have effect… on png images (I was using jpg).

    Sorry.

  5. Hi Ben, I’ve tried to edit the zc in my slider.php file, but nothing changes.

    <img class="nivim" src="/timthumb.php?src=&h=300&w=960&zc=2″ alt=”” title=””/>

    am I doing something wrong?

  6. Hi Ben, do you know if it is possible to add/remove effect only hen mouse hover? …like in css attribute “:hover”

    1. Hi – I think the easiest way to get this to work would be to use some jQuery and css. If you used CSS alone then you’d have to write the styles with your cms, which gets a bit messy.

  7. Hi,

    I’ve got timthumb.php inside my WordPress template-folder and it processes all the thumbnails fine, just right out of the box.

    After that i tried to figure out how to apply the “greyscale filters to/on my thumbnails” so i ended up here after 2 hours of googling and at least a minimum of 4 cups of coffee :D.

    I am not a coder nor a programmer but i hope you can give me some directions to get this greyscale filter work.

    Thank you in advance 😀

    keesh

  8. Hi Ben,

    I have a problem:

    I want to combine the greyscale and the colorize, but when I add colorize, my picture wins so much brightness, So I think, I will add negative brightness for egalize but no, I loose the contrast, so I added contrast to overcome the problem but it’s impossible, the result is very bad matter the combinations.

    That’s an issue? Why colorize add so much brightness? Why the alpha change nothing?

    Just for you give the idea, use this: f=5,158,177,181,0

    Thanks for your return

  9. Pingback: Complete TimThumb Parameters Guide

Leave a Reply to matiasCancel Reply

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