List Info

Thread: Extracting parts (layer) of a Tiff




Extracting parts (layer) of a Tiff
user name
2006-08-31 00:39:37
Hi Maillist!

While processing some thousands of images and creating
"thumbnails"
there where three images which resulted in a xxx.0 and xxx.1
image.

What I really want is a single resulting image (forced)

I have following infos of two images and identify &
convert infos:

gu:~# identify AMP.tif
identify: /root/AMP.tif: unknown field with tag 34665
(0x8769)
encountered..
/root/AMP.tif[0] TIFF 2488x1656 DirectClass 11.9mb 0.060u
0:01
/root/AMP.tif [1] TIFF 256x171 DirectClass 11.9mb 0.010u
0:01

gu:~# convert -antialias -size 400x400
"/root/AMP.tif" -resize 400x400
-strip -format jpg -colorspace RGB -quality 80 a.jpg
&& ls -l a.* && rm
a.*
convert: /root/AMP.tif: unknown field with tag 34665
(0x8769)
encountered..
-rw-r--r--  1 root root 27077 2006-08-31 02:34 a.jpg.0
-rw-r--r--  1 root root 19778 2006-08-31 02:34 a.jpg.1


gu:~# identify /root/quad.psd
/root/quad.psd PSD 2980x2550 DirectClass 31.1mb 0.010u 0:01

gu:~# convert -antialias -size 400x400
"/root/quad.psd" -resize 400x400
-strip -format jpg -colorspace RGB -quality 80 a.jpg
&& ls -l a.* && rm
a.*
-rw-r--r--  1 root root   698 2006-08-31 02:33 a.jpg.0
-rw-r--r--  1 root root 28123 2006-08-31 02:33 a.jpg.1

After my check, the bigger one of those images seems to be
the one I'm
looking after. The number varies on those two cases...

The strange thing on the second image (psd) is, identify
lists only one
but convert produces two... Starting the same with
"-combine" the
convert complains about
convert: images are not the same size `/root/quad.psd'.

What is the correct way to extract the "right"
image from such
multiimages?
I can't find a online description how to handle such cases.

Thanks for any input!

--
Miro


_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )