PHP Thumb » Feature Suggestions / Requests

Resize only width or height

(2 posts)
  1. Hi!

    Sorry if my english is not very good. :) I'm a spanish web developer.

    I love your thumb tool, a great piece of software! but i need 2 little modifications to make it perfect for me.

    First... i want resize my thumb with only the "WIDTH" value or only the "HEIGHT" value.

    For example in a 800x600 picture, i resize the height to 100 (height = 100 and width = 133) and then crop in X=0 and Y=0 to 100x100 thumbnail.

    And finally... a parameter to apply a "Unsharp Mask" to the thumbmails (you can take the code here http://vikjavev.no/computing/ump.php).

    Thanks a lot :)

    Posted 10 months ago #
  2. You should be able to pass 0 for either the width and height and that dimension will be ignored (i.e. resize(0, 100))

    As far as the unsharp mask filter, that shouldn't be too tough to get in.. why not file an enhancement ticket over at: http://trac.gxdlabs.com/projects/phpthumb/newticket

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.