List Info

Thread: AW: Extracting parts (layer) of a Tiff




AW: Extracting parts (layer) of a Tiff
user name
2006-09-01 02:52:36
"Miro Dietiker, MD Systems" on  wrote...
| > Von: magick-users-bouncesimagemagick.org
[mailto:magick-users-
| > bouncesimagemagick.org] Im Auftrag von Anthony
Thyssen
| > 
| > "Miro Dietiker, MD Systems" on  wrote...
| > | 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)
| > |
| > they would have been created from an image format
that allows multiple
| > images in the one file.  to force a single (first0
image only to be
| read
| > ass a '[0]' to the image filename.
| > 
| > Eg:     animation.gif'[0]'
| > 
| 
| Yes, right as i want the selection '[0]' selects the
first image...
| But there's a new issue:
| 
| While this '[0]' selects the specific image in jpg,
processing eps files
| now is broken:
| 
Jpeg files can not hold multiple images so the '[0]' will
not do anthing
for that file format.  for eps only the first page should be
returned
(After all the pages have been processed by ghostscript).

if you plan to process images differently depending on
format, that you
could look at using a postscript pre-processor to only
return the first
'page' of postscript file.

NOTE; eps files (encapulated posttscript includes) should
also only be a
single bounding boxed image on a single page.  It may be
some of of eps
files are actually multi-page postscript, whcih produces the
extra
numbered images you are seeing.

You can also just read in the image file and then delete all
extra
images using...    -delete 1--1
that means delete image index 1 (the second image) to the
last image
in the current image sequence.  That should leave you with
with just one
image (or if the image read errored, no images and another
warning message).

Hmm to combat that case you may like to add to the start of
your command
line the option -regard-warnings.  This treats any warning
from librarys
as fatal, and return a error status for the command.

| OK, I solved this issue by removing the [0] in case of
EPS, but this may
| be a error, isn't it?
| 
I would think so.  eps should always be a single image (with
bounding
box limits)  But some people (and programs) stuff up the
meaning of EPS
and produce plain postscript.

  Anthony Thyssen ( System Programmer )    <A.Thyssengriffith.edu.au>
 -----------------------------------------------------------
------------------
     DM: `` It hits and...  Oh, hold on...  I need more
dice... ''
 -----------------------------------------------------------
------------------
     Anthony's Home is his Castle     http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
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 )