Hello,
File is OK :
[root@s17841952 130]# ls -ltr f9ca5db179bf3fb0a53e2975.jpg
-rw-r--r-- 1 scruteweb psacln 328886 Dec 18 12:43 f9ca5db179bf3fb0a53e2975.jpg
But convert KO :
[root@s17841952 130]# convert -quality 5 f9ca5db179bf3fb0a53e2975.jpg
convert: missing an image filename `f9ca5db179bf3fb0a53e2975.jpg' @ convert.c/ConvertImageCommand/2800.
[root@s17841952 130]# convert -list configure
Path: /usr/lib64/ImageMagick-6.5.4/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99
CFLAGS -fopenmp -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -pthread
CONFIGURE ./configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-shared' '--disable-static' '--with-modules' '--with-perl' '--with-x' '--with-threads' '--with-magick_plus_plus' '--with-gslib' '--with-wmf' '--with-lcms' '--with-rsvg' '--with-xml' '--with-perl-options=INSTALLDIRS=vendor CC='\''gcc -L/builddir/build/BUILD/ImageMagick-6.5.4-7/magick/.libs'\'' LDDLFLAGS='\''-shared -L/builddir/build/BUILD/ImageMagick-6.5.4-7/magick/.libs'\''' '--without-dps' '--without-included-ltdl' '--with-ltdl-include=/usr/include' '--with-ltdl-lib=/usr/lib64' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
COPYRIGHT Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS -I/usr/include/ImageMagick
CXX g++
CXXFLAGS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib fontconfig freetype gs jpeg jng jp2 lcms openexr png rsvg tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-dps=no --with-fontpath=
EXEC-PREFIX /usr
HOST x86_64-redhat-linux-gnu
LDFLAGS -L/usr/lib64 -lfreetype
LIB_VERSION 0x654
LIB_VERSION_NUMBER 6,5,4,7
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /usr
QuantumDepth 16
RELEASE_DATE 2014-02-10
VERSION 6.5.4
WEBSITE http://www.imagemagick.org
Thank you for help me
Regards,
Adrien
ImageMagick-6.5.4 convert: missing an image filename
Re: ImageMagick-6.5.4 convert: missing an image filename
Code: Select all
convert -quality 5 f9ca5db179bf3fb0a53e2975.jpg
Are you trying to save the new image over the old image?
Re: ImageMagick-6.5.4 convert: missing an image filename
In fact I would like to compress the image :
[root@s17841952 130]# ls -ltr f9ca5db179bf3fb0a53e2975.jpg
-rw-r--r-- 1 scruteweb psacln 328886 Dec 18 12:43 f9ca5db179bf3fb0a53e2975.jpg
I can not find the order, can you give me?
convert -compress f9ca5db179bf3fb0a53e2975.jpg ?
and for quality :
convert -quality 5 f9ca5db179bf3fb0a53e2975.jpg f9ca5db179bf3fb0a53e2975-convert.jpg ?
Thanks
[root@s17841952 130]# ls -ltr f9ca5db179bf3fb0a53e2975.jpg
-rw-r--r-- 1 scruteweb psacln 328886 Dec 18 12:43 f9ca5db179bf3fb0a53e2975.jpg
I can not find the order, can you give me?
convert -compress f9ca5db179bf3fb0a53e2975.jpg ?
and for quality :
convert -quality 5 f9ca5db179bf3fb0a53e2975.jpg f9ca5db179bf3fb0a53e2975-convert.jpg ?
Thanks
Re: ImageMagick-6.5.4 convert: missing an image filename
Try this:
Code: Select all
convert f9ca5db179bf3fb0a53e2975.jpg -quality 5 f9ca5db179bf3fb0a53e2975-convert.jpg
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ImageMagick-6.5.4 convert: missing an image filename
Basic IM 6 syntax is explained at http://www.imagemagick.org/Usage/basics/#cmdline where it discusses differences from unix command syntax and progression of changes over time to the current IM 6 syntax.
Re: ImageMagick-6.5.4 convert: missing an image filename
thank you, it's ok
Re: ImageMagick-6.5.4 convert: missing an image filename
I'm new and puzzled by my defective performance on RHEL 6.6. Tried
$ ls -l view0001.dcm
-r-xr-xr-x. 1 wolf wolf 164264 Apr 27 09:46 view0001.dcm
$ convert view0001.dcm -quality 5 view0001.png
convert: missing an image filename `view0001.png' @ convert.c/ConvertImageCommand/2800.
$
What am I missing?
$ ls -l view0001.dcm
-r-xr-xr-x. 1 wolf wolf 164264 Apr 27 09:46 view0001.dcm
$ convert view0001.dcm -quality 5 view0001.png
convert: missing an image filename `view0001.png' @ convert.c/ConvertImageCommand/2800.
$
What am I missing?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: ImageMagick-6.5.4 convert: missing an image filename
Perhaps you are missing the libpng delegate library. What do you get returned from
convert -version
Please in the future, do not tack a new question onto an old topic. Also always provide your version of IM and platform.
convert -version
Please in the future, do not tack a new question onto an old topic. Also always provide your version of IM and platform.