Anthony Thyssen <[EMAIL PROTECTED]> writes:
> Eli Barzilay on wrote...
> | Hi,
> |
> | I'm trying to get thumbnails that have a uniform height, but doing
> | something like this:
> |
> | convert x.jpg -thumbnail '120x80>' -gravity center -extent 'x80<' xx.jpg
> |
> | spits out "convert: no pixels defined in cache `x.jpg'." and has
> | no visible effect on the resulting image. Is this a bug or
> | something wrong that I'm doing?
>
> well -extent is not right.. If you want to cut up an image use
> -crop.
>
> As for what you want use...
>
> convert x.jpg -thumbnail 'x80' xx.jpg
That's not what I want... I do want the width limit:
> the image will be resize to 80 pixels high, always.
> If you want a limit on width... add one...
>
> convert x.jpg -thumbnail '250x80' xx.jpg
>
> Which will make images 80 pixel high, unless the result is wider than
> 250 pixel, in which case it makes that the limit.
But the problem here is that for wide source images the thumbnail will
be shorter than 80 pixels, so I want to pad it to get uniform height.
Your (very helpful) page got me to switch from a complex combination
of convert+composite to a single command -- but the thing is that I
want the -extent to pad the thumbnail only vertically. (And I can use
some of the alternatives, but it still looks like `-extent x80' should
have done what I wanted.)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users