0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00
Commit graph

5 commits

Author SHA1 Message Date
Will Norris
cd1112f7ac allow percentage sizes
change height and width options to be floats, and interpret values
between 0 and 1 to be percentages.  For example, an options strings of
"0.5x" specifies 50% width and proportional height.
2013-12-06 15:03:17 -08:00
Will Norris
8310f6eb79 properly handle thumbnail requests
if both height and width are specified, we assume you want an image at
exactly those dimensions, so use imaging.Thumbnail, which will resize
and crop the image.

if either height or width are left unspecified, then it's just a simple
resize request.
2013-12-06 12:06:01 -08:00
Will Norris
2794d47390 accept "fit" option
this also relaxes option parsing to never return an error.  In cases
where options are not able to be parsed, they are silently ignored.
2013-12-06 11:12:57 -08:00
Will Norris
805aa606ca image transformation improvements
- switch to disintegration/imaging library, which supports more of the
  transformations I want to add
- pass image through untouched if provided Options are empty
2013-12-06 09:23:04 -08:00
Will Norris
45d07f2378 add support for image resizing 2013-12-04 23:45:06 -08:00