Hi,
ich versuche ein Bild beim Upload zu verkleinern. Das Bild soll nie breiter als 1000px sein. Wenn es breiter ist, soll es auf 1000px breit verkleinert werden.
Mit Imagemagick habe ich so probiert:
convert -size 1000x /home/Garden.jpg
convert -geometry 1000x /home/Garden.jpgBeide funtkionieren nicht. Es wird nur verkleinert, wenn ich die Höhe mit eingebe, z. B. so:
convert -geometry 1000x520 /home/Garden.jpg
http://www.imagemagick.org/script/command-line-options.php#resize
MfG ChrisB
--
"The Internet: Technological marvel of marvels - but if you don't know *what* you're lookin' for on the Internet, it is nothing but a time-sucking vortex from hell."
"The Internet: Technological marvel of marvels - but if you don't know *what* you're lookin' for on the Internet, it is nothing but a time-sucking vortex from hell."