Page 1 of 1

-write convert-im6.q16: missing an image filename

Posted: 2019-07-31T14:04:27-07:00
by boeseMiezekatze
-write has stopped working

on the same server this works

Code: Select all

convert b63cbbab-3ca4-4434-a7fb-a26da20c2f77.png -resize 1000x1000 big.jpg
but not this

Code: Select all

convert b63cbbab-3ca4-4434-a7fb-a26da20c2f77.png -resize 1000x1000 -write big.jpg
convert-im6.q16: missing an image filename `big.jpg' @ error/convert.c/ConvertImageCommand/3255.

Code: Select all

convert -list configure

Path: /usr/lib/x86_64-linux-gnu/ImageMagick-6.9.7//config-Q16/configure.xml

Name           Value
-------------------------------------------------------------------------------
CC             gcc
CFLAGS         -I/usr/include/libxml2 -I/usr/include/libpng16  -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/OpenEXR  -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread    -fopenmp -g -O2 -fdebug-prefix-map=/build/imagemagick-Gb8atx/imagemagick-6.9.7.4+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH     /usr/lib/x86_64-linux-gnu/ImageMagick-6.9.7/modules-Q16/coders
CONFIGURE      ../../configure  '--build=x86_64-linux-gnu' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' '--enable-reproducible-build' '--prefix=/usr' '--libdir=/usr/lib/x86_64-linux-gnu' '--docdir=/usr/share/doc/imagemagick-6-common/html' '--with-extra-doc-dir= (on debian system you may install the imagemagick-6-doc package)' '--sysconfdir=/etc' '--with-includearch-dir=/usr/include/x86_64-linux-gnu/' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-modules' '--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-magick-plus-plus' '--with-djvu' '--with-openjp2' '--with-wmf' '--without-gvc' '--enable-shared' '--without-dps' '--without-fpx' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor' '--x-includes=/usr/include/X11' '--x-libraries=/usr/lib/X11' '--without-rsvg' '--cache-file=../../config.cache' '--without-gcc-arch' '--disable-silent-rules' '--with-quantum-depth=16' '--enable-hdri=no' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/imagemagick-Gb8atx/imagemagick-6.9.7.4+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/imagemagick-Gb8atx/imagemagick-6.9.7.4+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security'
CONFIGURE_PATH /etc/ImageMagick-6/
COPYRIGHT      Copyright (C) 1999-2016 ImageMagick Studio LLC
CPPFLAGS       -I/usr/include/ImageMagick-6
CXX            g++
CXXFLAGS       -g -O2 -fdebug-prefix-map=/build/imagemagick-Gb8atx/imagemagick-6.9.7.4+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -pthread
DEFS           -DHAVE_CONFIG_H
DELEGATES      bzlib djvu mpeg fftw fontconfig freetype jbig jng jpeg lcms lqr lzma openexr pango png ps tiff wmf x xml zlib
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/imagemagick-Gb8atx/imagemagick-6.9.7.4+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed'  --disable-deprecated  --with-quantum-depth=16  --with-jemalloc=no  --with-umem=no  --with-autotrace=no  --with-dps=no  --with-fpx=no  --with-gslib=no  --with-fontpath=  --with-gs-font-dir=/usr/share/fonts/type1/gsfonts  --with-gvc=no  --with-rsvg=no 
DOCUMENTATION_PATH /usr/share/doc/imagemagick-6-common/html
EXEC-PREFIX    /usr
EXECUTABLE_PATH /usr/bin
FEATURES       DPC Cipher OpenMP Modules
FILTER_PATH    /usr/lib/x86_64-linux-gnu/ImageMagick-6.9.7/modules-Q16/filters
GIT_REVISION   11293
HOST           x86_64-pc-linux-gnu
INCLUDE_PATH   /usr/include/ImageMagick-6
LDFLAGS        -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed  -L/usr/lib/X11
LIB_VERSION    0x697
LIB_VERSION_NUMBER 6,9,7,4
LIBRARY_PATH   /usr/lib/x86_64-linux-gnu/ImageMagick-6.9.7
LIBS            -llcms2 -lfreetype  -llqr-1 -lglib-2.0 -lfftw3  -lfontconfig -lfreetype -lXext   -lSM -lICE -lX11  -lXt -llzma -lbz2 -lz -lltdl  -lm -lgomp    
NAME           ImageMagick
PCFLAGS        -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX         /usr
QuantumDepth   16
RELEASE_DATE   20170114
SHARE_PATH     /usr/share/ImageMagick-6
SHAREARCH_PATH /usr/lib/x86_64-linux-gnu/ImageMagick-6.9.7/config-Q16
TARGET_CPU     x86_64
TARGET_OS      linux-gnu
TARGET_VENDOR  pc
VERSION        6.9.7
WEBSITE        http://www.imagemagick.org

Path: [built-in]

Name           Value
-------------------------------------------------------------------------------
FEATURES       OpenMP 
NAME           ImageMagick
QuantumDepth   16

well I know now what to avoid but anyway sad -write was so helpful in converting from one source to multiple destinations :(

Re: -write convert-im6.q16: missing an image filename

Posted: 2019-07-31T15:00:43-07:00
by fmw42
You cannot have -write xxx without specify a proper output. Convert needs at least one input and one output specified other than any intermediate -writes. The command should be

Code: Select all

convert b63cbbab-3ca4-4434-a7fb-a26da20c2f77.png -resize 1000x1000 -write big.jpg null:
That sets null: as the proper output, which discards any images left in the command line.

Re: -write convert-im6.q16: missing an image filename

Posted: 2019-07-31T15:02:12-07:00
by snibgo
"-write" works fine.

"convert" and "magick" both require that the final operation on the command line is an implied write to a filename. "Implied" means that you don't have an explicit "-write".

So your first command is valid. Your second command is not valid, but it would be if you added another filename (or "NULL:") to the end.

Re: -write convert-im6.q16: missing an image filename

Posted: 2019-07-31T21:26:50-07:00
by boeseMiezekatze
So I just need to skip the last -write. In my command.

Code: Select all

convert b63cbbab-3ca4-4434-a7fb-a26da20c2f77.png -resize 1000x1000 -write big.jpg  -resize 500x500 -write small.jpg  -resize 150x150 thumb.jpg
thank you guys :)

Re: -write convert-im6.q16: missing an image filename

Posted: 2019-07-31T22:15:44-07:00
by fmw42
Correct.