> $ pwd
> /home/fred/Desktop/magick_target
> $ ls
> bild1.jpg
> $ convert bild1.jpg -resize 22% testpic.jpg
> convert: no decode delegate for this image format `bild1.jpg' @
> error/constitute.c/ReadImage/544.
> convert: no images defined `testpic.jpg' @
> error/convert.c/ConvertImageCommand/3044.
The syntax above works OK for me on FreeBSD with ImageMagick 6.7.8.
Note: FreeBSD seems to put stuff under /usr/local/include,
/usr/local/lib, /usr/local/bin, etc. Linux seems to put these in
/usr/include, /usr/lib, /usr/bin, etc. Just accept that as a
difference and use top-level directory names suitable for your
system.
> $ cd /usr/bin/
> $ ls convert
> convert
> $ cd /home/fred/D
> Desktop/ Documents/ Downloads/
> $ cd /home/fred/Desktop/magick_target/
> $ ls -l
> total 2740
> -rw-rw-r-- 1 fred fred 2803799 Aug 13 21:42 bild1.jpg
> $
>
> I've done a fair amount of fiddling with this already, so it's very
> possible that I fiddled a header file away from some search path. In
> the includes of the cc command that was to build this, there were 4 of
> them that didn't seem to have the right paths to me, so I did this 4
> different times:
>
> fred@fred-desktop:/usr/include/freetype2$ sudo cp -r freetype/* .
>
> , which put the .h files in the upper directory into @INC.
My installation of ImageMagick on FreeBSD has a bunch of include
files in /usr/local/include/freetype2/freetype. There are no header
files in /usr/local/include/freetype2. *C* header files are usually
used only during compilations anyway. *Perl* usually announces
loudly that its header files are missing if it can't find them.
I imagine that freetype *1* used:
-I/usr/include
and #include <freetype/freetype.h>
then they switched to freetype2, and changed this to:
-I/usr/include/freetype2
and #include <freetype/freetype.h>
since they didn't want to modify all the source files, which expains
why the header files are in /usr/include/freetype2/freetype and not
/usr/include/freetype2 .
> As far as I'm concerned, resizing a jpg image has to rank as the easiest
> thing that ImageMagick does, so I think something is really wonky about
> what I have.
>
> Q1) How do I best proceed to get a robust ImageMagick install.
ImageMagick has a bunch of plug-ins on my system in
/usr/local/lib/ImageMagick-6.7.8/modules and configuration in
/usr/local/lib/ImageMagick-6.7.8/config/configure.xml . I suggest
that some of these are missing. configure.xml has a line referring
to "DELEGATES" (note reference to "delegate" in error message above)
and listing a bunch of image types, including jpeg.
I notice that if I chmod the /usr/local/lib/ImageMagick-6.7.8 directory
to 0, then try to run 'convert' as an ordinary user, I get an error
message much like this one:
> convert: no decode delegate for this image format `bild1.jpg' @
but with different file names, so I suggest that something under
this directory (yours is probably /usr/lib/ImageMagick-6.7.8 with
the version number changed to one that matches your package) is
missing and/or has too restrictive permissions.
If the files under this directory are *NOT* missing, it may be that
the plug-ins cannot be loaded because other packages and shared
libraries needed by the plug-ins are missing or inaccessible.
Use of "ldd" on the plug-ins to figure out what they can't load
may be appropriate.
You may not need all the plugins listed below but I'd be concerned
if
jpeg.la and/or jpeg.so are missing.
% ls -lR /usr/local/lib/ImageMagick-6.7.8
total 8
drwxr-xr-x 2 root wheel 512 Aug 20 00:15 config
drwxr-xr-x 4 root wheel 512 Aug 20 00:15 modules-Q16
/usr/local/lib/ImageMagick-6.7.8/config:
total 8
-r--r--r-- 1 root wheel 4139 Aug 20 00:15 configure.xml
/usr/local/lib/ImageMagick-6.7.8/modules-Q16:
total 8
drwxr-xr-x 2 root wheel 4096 Aug 20 00:15 coders
drwxr-xr-x 2 root wheel 512 Aug 20 00:15 filters
/usr/local/lib/ImageMagick-6.7.8/modules-Q16/coders:
total 3580
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
aai.la
-rwxr-xr-x 1 root wheel 11073 Aug 20 00:14 aai.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
art.la
-rwxr-xr-x 1 root wheel 10741 Aug 20 00:14 art.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
avs.la
-rwxr-xr-x 1 root wheel 11021 Aug 20 00:14 avs.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
bgr.la
-rwxr-xr-x 1 root wheel 25297 Aug 20 00:14 bgr.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
bmp.la
-rwxr-xr-x 1 root wheel 32901 Aug 20 00:14 bmp.so
-rwxr-xr-x 1 root wheel 1596 Aug 20 00:14
braille.la
-rwxr-xr-x 1 root wheel 10541 Aug 20 00:14 braille.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
cals.la
-rwxr-xr-x 1 root wheel 10955 Aug 20 00:14 cals.so
-rwxr-xr-x 1 root wheel 1596 Aug 20 00:14
caption.la
-rwxr-xr-x 1 root wheel 9953 Aug 20 00:14 caption.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
cin.la
-rwxr-xr-x 1 root wheel 21793 Aug 20 00:14 cin.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
cip.la
-rwxr-xr-x 1 root wheel 13049 Aug 20 00:14 cip.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
clip.la
-rwxr-xr-x 1 root wheel 6431 Aug 20 00:14 clip.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
cmyk.la
-rwxr-xr-x 1 root wheel 29203 Aug 20 00:14 cmyk.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
cut.la
-rwxr-xr-x 1 root wheel 14697 Aug 20 00:14 cut.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
dcm.la
-rwxr-xr-x 1 root wheel 143497 Aug 20 00:14 dcm.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
dds.la
-rwxr-xr-x 1 root wheel 11985 Aug 20 00:14 dds.so
-rwxr-xr-x 1 root wheel 1584 Aug 20 00:14
debug.la
-rwxr-xr-x 1 root wheel 8137 Aug 20 00:14 debug.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
dib.la
-rwxr-xr-x 1 root wheel 20009 Aug 20 00:14 dib.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
dng.la
-rwxr-xr-x 1 root wheel 10793 Aug 20 00:14 dng.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
dot.la
-rwxr-xr-x 1 root wheel 4873 Aug 20 00:14 dot.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
dpx.la
-rwxr-xr-x 1 root wheel 31641 Aug 20 00:14 dpx.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
ept.la
-rwxr-xr-x 1 root wheel 10877 Aug 20 00:15 ept.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
fax.la
-rwxr-xr-x 1 root wheel 8989 Aug 20 00:14 fax.so
-rwxr-xr-x 1 root wheel 1566 Aug 20 00:14
fd.la
-rwxr-xr-x 1 root wheel 6571 Aug 20 00:14 fd.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
fits.la
-rwxr-xr-x 1 root wheel 19047 Aug 20 00:14 fits.so
-rwxr-xr-x 1 root wheel 1587 Aug 20 00:15
fpx.la
-rwxr-xr-x 1 root wheel 15861 Aug 20 00:15 fpx.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
gif.la
-rwxr-xr-x 1 root wheel 27081 Aug 20 00:14 gif.so
-rwxr-xr-x 1 root wheel 1602 Aug 20 00:14
gradient.la
-rwxr-xr-x 1 root wheel 8495 Aug 20 00:14 gradient.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
gray.la
-rwxr-xr-x 1 root wheel 11687 Aug 20 00:14 gray.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
hald.la
-rwxr-xr-x 1 root wheel 6615 Aug 20 00:14 hald.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
hdr.la
-rwxr-xr-x 1 root wheel 16121 Aug 20 00:14 hdr.so
-rwxr-xr-x 1 root wheel 1608 Aug 20 00:14
histogram.la
-rwxr-xr-x 1 root wheel 10629 Aug 20 00:14 histogram.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
hrz.la
-rwxr-xr-x 1 root wheel 9409 Aug 20 00:14 hrz.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
html.la
-rwxr-xr-x 1 root wheel 10571 Aug 20 00:14 html.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
icon.la
-rwxr-xr-x 1 root wheel 22991 Aug 20 00:14 icon.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
info.la
-rwxr-xr-x 1 root wheel 6903 Aug 20 00:14 info.so
-rwxr-xr-x 1 root wheel 1590 Aug 20 00:14
inline.la
-rwxr-xr-x 1 root wheel 6835 Aug 20 00:14 inline.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
ipl.la
-rwxr-xr-x 1 root wheel 13747 Aug 20 00:14 ipl.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
jbig.la
-rwxr-xr-x 1 root wheel 12883 Aug 20 00:15 jbig.so
-rwxr-xr-x 1 root wheel 1600 Aug 20 00:15
jp2.la
-rwxr-xr-x 1 root wheel 23765 Aug 20 00:15 jp2.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
jpeg.la
-rwxr-xr-x 1 root wheel 42515 Aug 20 00:15 jpeg.so
-rwxr-xr-x 1 root wheel 1584 Aug 20 00:14
label.la
-rwxr-xr-x 1 root wheel 8473 Aug 20 00:14 label.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
mac.la
-rwxr-xr-x 1 root wheel 7973 Aug 20 00:14 mac.so
-rwxr-xr-x 1 root wheel 1590 Aug 20 00:14
magick.la
-rwxr-xr-x 1 root wheel 216091 Aug 20 00:14 magick.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
map.la
-rwxr-xr-x 1 root wheel 10573 Aug 20 00:14 map.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:14
mat.la
-rwxr-xr-x 1 root wheel 21213 Aug 20 00:14 mat.so
-rwxr-xr-x 1 root wheel 1584 Aug 20 00:14
matte.la
-rwxr-xr-x 1 root wheel 6429 Aug 20 00:14 matte.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
meta.la
-rwxr-xr-x 1 root wheel 29503 Aug 20 00:14 meta.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
miff.la
-rwxr-xr-x 1 root wheel 37283 Aug 20 00:14 miff.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:14
mono.la
-rwxr-xr-x 1 root wheel 10583 Aug 20 00:14 mono.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
mpc.la
-rwxr-xr-x 1 root wheel 26133 Aug 20 00:15 mpc.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
mpeg.la
-rwxr-xr-x 1 root wheel 12071 Aug 20 00:15 mpeg.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
mpr.la
-rwxr-xr-x 1 root wheel 6397 Aug 20 00:15 mpr.so
-rwxr-xr-x 1 root wheel 1598 Aug 20 00:15
msl.la
-rwxr-xr-x 1 root wheel 124465 Aug 20 00:15 msl.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
mtv.la
-rwxr-xr-x 1 root wheel 10965 Aug 20 00:15 mtv.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
mvg.la
-rwxr-xr-x 1 root wheel 8909 Aug 20 00:15 mvg.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
null.la
-rwxr-xr-x 1 root wheel 7671 Aug 20 00:15 null.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
otb.la
-rwxr-xr-x 1 root wheel 10585 Aug 20 00:15 otb.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
palm.la
-rwxr-xr-x 1 root wheel 19667 Aug 20 00:15 palm.so
-rwxr-xr-x 1 root wheel 1584 Aug 20 00:15
pango.la
-rwxr-xr-x 1 root wheel 4921 Aug 20 00:15 pango.so
-rwxr-xr-x 1 root wheel 1596 Aug 20 00:15
pattern.la
-rwxr-xr-x 1 root wheel 462153 Aug 20 00:15 pattern.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
pcd.la
-rwxr-xr-x 1 root wheel 20317 Aug 20 00:15 pcd.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
pcl.la
-rwxr-xr-x 1 root wheel 17697 Aug 20 00:15 pcl.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
pcx.la
-rwxr-xr-x 1 root wheel 21389 Aug 20 00:15 pcx.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
pdb.la
-rwxr-xr-x 1 root wheel 18041 Aug 20 00:15 pdb.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
pdf.la
-rwxr-xr-x 1 root wheel 47721 Aug 20 00:15 pdf.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
pes.la
-rwxr-xr-x 1 root wheel 12085 Aug 20 00:15 pes.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
pict.la
-rwxr-xr-x 1 root wheel 33643 Aug 20 00:15 pict.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
pix.la
-rwxr-xr-x 1 root wheel 9169 Aug 20 00:15 pix.so
-rwxr-xr-x 1 root wheel 1590 Aug 20 00:15
plasma.la
-rwxr-xr-x 1 root wheel 12031 Aug 20 00:15 plasma.so
-rwxr-xr-x 1 root wheel 1580 Aug 20 00:15
png.la
-rwxr-xr-x 1 root wheel 144625 Aug 20 00:15 png.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
pnm.la
-rwxr-xr-x 1 root wheel 45081 Aug 20 00:15 pnm.so
-rwxr-xr-x 1 root wheel 1596 Aug 20 00:15
preview.la
-rwxr-xr-x 1 root wheel 6429 Aug 20 00:15 preview.so
-rwxr-xr-x 1 root wheel 1566 Aug 20 00:15
ps.la
-rwxr-xr-x 1 root wheel 45675 Aug 20 00:15 ps.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
ps2.la
-rwxr-xr-x 1 root wheel 26093 Aug 20 00:15 ps2.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
ps3.la
-rwxr-xr-x 1 root wheel 31957 Aug 20 00:15 ps3.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
psd.la
-rwxr-xr-x 1 root wheel 36569 Aug 20 00:15 psd.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
pwp.la
-rwxr-xr-x 1 root wheel 9293 Aug 20 00:15 pwp.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
raw.la
-rwxr-xr-x 1 root wheel 13309 Aug 20 00:15 raw.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
rgb.la
-rwxr-xr-x 1 root wheel 25677 Aug 20 00:15 rgb.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
rla.la
-rwxr-xr-x 1 root wheel 9469 Aug 20 00:15 rla.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
rle.la
-rwxr-xr-x 1 root wheel 13281 Aug 20 00:15 rle.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
scr.la
-rwxr-xr-x 1 root wheel 7349 Aug 20 00:15 scr.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
sct.la
-rwxr-xr-x 1 root wheel 9093 Aug 20 00:15 sct.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
sfw.la
-rwxr-xr-x 1 root wheel 11049 Aug 20 00:15 sfw.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
sgi.la
-rwxr-xr-x 1 root wheel 19841 Aug 20 00:15 sgi.so
-rwxr-xr-x 1 root wheel 1596 Aug 20 00:15
stegano.la
-rwxr-xr-x 1 root wheel 8157 Aug 20 00:15 stegano.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
sun.la
-rwxr-xr-x 1 root wheel 17905 Aug 20 00:15 sun.so
-rwxr-xr-x 1 root wheel 2118 Aug 20 00:15
svg.la
-rwxr-xr-x 1 root wheel 65821 Aug 20 00:15 svg.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
tga.la
-rwxr-xr-x 1 root wheel 15653 Aug 20 00:15 tga.so
-rwxr-xr-x 1 root wheel 1608 Aug 20 00:15
thumbnail.la
-rwxr-xr-x 1 root wheel 7281 Aug 20 00:15 thumbnail.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
tiff.la
-rwxr-xr-x 1 root wheel 52779 Aug 20 00:15 tiff.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
tile.la
-rwxr-xr-x 1 root wheel 7015 Aug 20 00:15 tile.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
tim.la
-rwxr-xr-x 1 root wheel 11765 Aug 20 00:15 tim.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
ttf.la
-rwxr-xr-x 1 root wheel 9593 Aug 20 00:15 ttf.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
txt.la
-rwxr-xr-x 1 root wheel 16741 Aug 20 00:15 txt.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
uil.la
-rwxr-xr-x 1 root wheel 10861 Aug 20 00:15 uil.so
-rwxr-xr-x 1 root wheel 1598 Aug 20 00:15
url.la
-rwxr-xr-x 1 root wheel 8493 Aug 20 00:15 url.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
uyvy.la
-rwxr-xr-x 1 root wheel 9851 Aug 20 00:15 uyvy.so
-rwxr-xr-x 1 root wheel 1584 Aug 20 00:15
vicar.la
-rwxr-xr-x 1 root wheel 11925 Aug 20 00:15 vicar.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
vid.la
-rwxr-xr-x 1 root wheel 10625 Aug 20 00:15 vid.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
viff.la
-rwxr-xr-x 1 root wheel 22959 Aug 20 00:15 viff.so
-rwxr-xr-x 1 root wheel 1578 Aug 20 00:15
wbmp.la
-rwxr-xr-x 1 root wheel 11403 Aug 20 00:15 wbmp.so
-rwxr-xr-x 1 root wheel 1604 Aug 20 00:15
webp.la
-rwxr-xr-x 1 root wheel 10587 Aug 20 00:15 webp.so
-rwxr-xr-x 1 root wheel 1633 Aug 20 00:15
wmf.la
-rwxr-xr-x 1 root wheel 35833 Aug 20 00:15 wmf.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
wpg.la
-rwxr-xr-x 1 root wheel 21438 Aug 20 00:15 wpg.so
-rwxr-xr-x 1 root wheel 1560 Aug 20 00:15
x.la
-rwxr-xr-x 1 root wheel 5381 Aug 20 00:15 x.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
xbm.la
-rwxr-xr-x 1 root wheel 12921 Aug 20 00:15 xbm.so
-rwxr-xr-x 1 root wheel 1566 Aug 20 00:15
xc.la
-rwxr-xr-x 1 root wheel 7055 Aug 20 00:15 xc.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
xcf.la
-rwxr-xr-x 1 root wheel 17517 Aug 20 00:15 xcf.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
xpm.la
-rwxr-xr-x 1 root wheel 19281 Aug 20 00:15 xpm.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
xps.la
-rwxr-xr-x 1 root wheel 11057 Aug 20 00:15 xps.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
xwd.la
-rwxr-xr-x 1 root wheel 15981 Aug 20 00:15 xwd.so
-rwxr-xr-x 1 root wheel 1584 Aug 20 00:15
ycbcr.la
-rwxr-xr-x 1 root wheel 25829 Aug 20 00:15 ycbcr.so
-rwxr-xr-x 1 root wheel 1572 Aug 20 00:15
yuv.la
-rwxr-xr-x 1 root wheel 16829 Aug 20 00:15 yuv.so
/usr/local/lib/ImageMagick-6.7.8/modules-Q16/filters:
total 12
-rwxr-xr-x 1 root wheel 1597 Aug 20 00:15
analyze.la
-rwxr-xr-x 1 root wheel 7338 Aug 20 00:15 analyze.so
> Q2) What would be a bash script that would resize all the jpg's in
> magic_target to 22% of its current size.
Where do you want the output? Something like:
for x in *.jpg
do
convert $x -resize 22% dummy.jpg
mv dummy.jpg $x
done
would work, but writing over the originals is dangerous if you're not sure
it works and if it gets interrupted, you're not sure how far it got.
Also, make sure you have no file with real data in it called dummy.jpg .
Another, safer, possibility is:
cd /...../inputdirectory
for x in *.jpg
do
convert $x -resize 22% /......./outputdirectory/$x
done
Adjust paths as necessary.
> Q3) What does the number after the total mean when one uses the -l with
> ls for a long listing. And just to head off what gets spit out by
> people with nothing else to contribute to a discussion, I did do this:
>
> $ man ls
The total number of blocks in files in the listing.
I recommend re-fetching and re-installing ImageMagick if as I suspect that
pieces are missing. Perhaps some of the packages it requires also need to
be reinstalled.