Crop Resize Windows/Debian

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
spooky_1999
Posts: 3
Joined: 2014-03-14T14:06:49-07:00
Authentication code: 6789

Crop Resize Windows/Debian

Post by spooky_1999 »

Hallo i use the following parameters to convert crop/resize/zoom in-out under windows and it works perferct for me:

Code: Select all

convert "source.jpg" -resize "1920x500^" -gravity center -crop 1920x500+0+0 +repage "destination.jpg"
under debian i get the following error:
convert: invalid argument for option `1920x500^': -resize.
if i remove the ^ - i get a fullsize 1920x1080 pic/not croped but zommed. Any ideas?

Greets from germany and sorry for my bad english...
sven
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Crop Resize Windows/Debian

Post by dlemstra »

What is your ImageMagick version?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Crop Resize Windows/Debian

Post by fmw42 »

From the changelog:

2008-01-24 6.3.8-2 Cristy <quetzlzacatenango@image...>
Support a ^ meta character in an image geometry (.e.g convert 640x480.png -resize 240^ returns a 320x240 result).


If your IM version is older than 6.3.8-2, then this option is not available and you would have to upgrade or script an equivalent test and resize.
spooky_1999
Posts: 3
Joined: 2014-03-14T14:06:49-07:00
Authentication code: 6789

Re: Crop Resize Windows/Debian

Post by spooky_1999 »

i have ImageMagick 6.3.7 11/16/10 Q16 on linux and ImageMagick 6.5.1-1 2009-04-10 Q16 on Windows

i use debian lenny .. all is automatically updated/upgraded but lenny is a bit older.

can i manual download and install a newer version without trouble ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Crop Resize Windows/Debian

Post by fmw42 »

On windows you can install a binary without too much effort. Though I am not windows users. On unix, you have to download and compile each delegate library and then download the IM sources and install that.

see
http://www.imagemagick.org/script/binar ... hp#windows

http://www.imagemagick.org/script/insta ... e.php#unix
http://www.imagemagick.org/script/advan ... lation.php
spooky_1999
Posts: 3
Joined: 2014-03-14T14:06:49-07:00
Authentication code: 6789

Re: Crop Resize Windows/Debian

Post by spooky_1999 »

Hallo,

i have uninstalled the old version and followed your second link.

the result 1 fail:
FAIL: tests/wandtest.tap 1
make[5]: Entering directory `/install/ImageMagick-6.8.8-8'
make all-recursive
make[6]: Entering directory `/install/ImageMagick-6.8.8-8'
Making all in .
make[7]: Entering directory `/install/ImageMagick-6.8.8-8'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/install/ImageMagick-6.8.8-8'
make[6]: Leaving directory `/install/ImageMagick-6.8.8-8'
make[5]: Leaving directory `/install/ImageMagick-6.8.8-8'
============================================================================
Testsuite summary for ImageMagick 6.8.8
============================================================================
# TOTAL: 40
# PASS: 39
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to http://www.imagemagick.org
============================================================================
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory `/install/ImageMagick-6.8.8-8'
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory `/install/ImageMagick-6.8.8-8'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/install/ImageMagick-6.8.8-8'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/install/ImageMagick-6.8.8-8'
make: *** [check] Error 2
additonally if i enter convert i got only these message
-bash: /usr/bin/convert: No such file or directory
and nothing will work :(
Post Reply