Problems converting file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
youds
Posts: 53
Joined: 2010-01-28T05:38:11-07:00
Authentication code: 8675309

Re: Problems converting file

Post by youds »

I found that you can convert to the profile file types using convert, by reading this page: http://linux.about.com/library/cmd/blcm ... Magick.htm

However this still isn't helping, as the files are persistently returning no relevant profile data.

Code: Select all

[root@tower cs3]# convert brookland-cover-different-profile.eps profile.iptc
convert: no 8BIM data is available `profile.iptc' @ error/meta.c/WriteMETAImage/2280.
[root@tower cs3]# convert brookland-cover-different-profile.eps profile.icm
convert: no color profile is available `profile.icm' @ error/meta.c/WriteMETAImage/2372.
Files are available in the imagick folder at http://public.me.com/craigfairhurst

I'm really struggling - any advice greatly appreciated.
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problems converting file

Post by magick »

You can only extract a profile if the image actually embeds it. The exception message is telling you your image does not embed the profile you are trying to extract. You can verify this with the identify -verbose command.
youds
Posts: 53
Joined: 2010-01-28T05:38:11-07:00
Authentication code: 8675309

Re: Problems converting file

Post by youds »

The identify -verbose command tells me there is an xmp profile, see below:

Code: Select all

Profiles:
    Profile-xmp: 44379 bytes
So I've tried this:

Code: Select all

exiftool -xmp -b brookland-cover-different-profile.eps > out.xmp
Which does output data to out.xmp.

So then I run

Code: Select all

convert -density 288 brookland-cover-different-profile.eps -profile out.xmp -profile ../sRGB_IEC61966-2-1_black_scaled.icc brookland-cover-different-profile.jpg
and I get the same image as when there is no profile specified but no error message.

The file is available at "imagick/cs3/brookland-cover-different-profile.eps" via URL http://public.me.com/craigfairhurst
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problems converting file

Post by magick »

The XMP profile is not a color profile so we would not expect any color changes if you apply it.
youds
Posts: 53
Joined: 2010-01-28T05:38:11-07:00
Authentication code: 8675309

Re: Problems converting file

Post by youds »

So how to decide which profile to use then if there is none embedded but the conversion requires one?
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
youds
Posts: 53
Joined: 2010-01-28T05:38:11-07:00
Authentication code: 8675309

Re: Problems converting file

Post by youds »

And if you open up imagick/cs2/brookland-cover.eps in Illustrator you see there is an embedded colour profile of USWebCoatedSWOP 2

It doesn't make sense.
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problems converting file

Post by magick »

You can use any editor and view the XMP data yourself. It does not include a color profile. Its possible Adobe has references to color profiles in the XMP metadata but includes the actual profile in the distribution of their software. Its possible its embedded elsewhere in the file in a format ImageMagick does not understand.
youds
Posts: 53
Joined: 2010-01-28T05:38:11-07:00
Authentication code: 8675309

Re: Problems converting file

Post by youds »

Here's a snippet of the XMP data, the relevant bit

Code: Select all

---- IFD0 ----
Subfile Type                    : Full-resolution Image
Image Width                     : 596
Image Height                    : 842
Bits Per Sample                 : 8
Compression                     : Uncompressed
Photometric Interpretation      : RGB Palette
Samples Per Pixel               : 2
Planar Configuration            : Chunky
Strip Offsets                   : 57278861
Strip Byte Counts               : 1003664
Color Map                       : (Binary data 1536 bytes, use -b option to extract)
Extra Samples                   : 1
Seems the Color Map could be useful. Will keep you posted.
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
youds
Posts: 53
Joined: 2010-01-28T05:38:11-07:00
Authentication code: 8675309

Re: Problems converting file

Post by youds »

No joy with that particular field.
I'm at a loss as to how to determine what colour profile to use. All produce different results and none is identical.
The closest isn't far off however it makes no sense not being able to get the right match.
I've the Colour Profiles from Adobe, http://www.adobe.com/support/downloads/ ... ftpID=4076 but no way to decide which to use.

Here's all the EXIF data:

Code: Select all

[root@tower cs2]# exiftool -a -u -g1 -s brookland-cover.eps
---- ExifTool ----
ExifToolVersion                 : 8.10
---- System ----
FileName                        : brookland-cover.eps
Directory                       : .
FileSize                        : 56 MB
FileModifyDate                  : 2010:02:12 13:27:34+00:00
FilePermissions                 : rw-r--r--
---- File ----
FileType                        : EPS
MIMEType                        : application/postscript
ExifByteOrder                   : Little-endian (Intel, II)
---- PostScript ----
TIFFPreview                     : (Binary data 1005807 bytes, use -b option to extract)
Title                           : BROOKLAND COVER.eps
Creator                         : Adobe Illustrator(R) 12
For                             : Panaz Ltd
CreateDate                      : 8/4/2009
BoundingBox                     : 0 0 596 842
Pages                           : 1
Version                         : 1.0 0
Copyright                       : Copyright (C) 2000-2003 Adobe Systems, Inc.  All Rights Reserved.
Version                         : 2.0 0
Copyright                       : Copyright (C) 1997-2005 Adobe Systems, Inc.  All Rights Reserved.
Copyright                       : Copyright 1997-2005 Adobe Systems Incorporated.  All Rights Reserved.
Version                         : 2.25 0
Copyright                       : Copyright 1987-2005 Adobe Systems Incorporated.
Version                         : 1.21 0
Copyright                       : Copyright 1987-2004 Adobe Systems Incorporated.
Version                         : 1.0 0
Version                         : 1.0 0
Copyright                       : Copyright (C) 2000-2003 Adobe Systems, Inc.  All Rights Reserved.
Copyright                       : Copyright 2009 Adobe System Incorporated. All rights reserved.
Creator                         : Adobe Illustrator(R) 12.0
For                             : Panaz Ltd, Panaz Ltd
Title                           : BROOKLAND COVER.eps
CreateDate                      : 8/4/2009 10:05 AM
---- IFD0 ----
SubfileType                     : Full-resolution Image
ImageWidth                      : 596
ImageHeight                     : 842
BitsPerSample                   : 8
Compression                     : Uncompressed
PhotometricInterpretation       : RGB Palette
SamplesPerPixel                 : 2
PlanarConfiguration             : Chunky
StripOffsets                    : 57278861
StripByteCounts                 : 1003664
ColorMap                        : (Binary data 1536 bytes, use -b option to extract)
ExtraSamples                    : 1
---- Photoshop ----
Photoshop_0x07d0                : ...[...]
ClippingPathName                : Path
---- XMP-x ----
XMPToolkit                      : 3.1.1-111
---- XMP-dc ----
Format                          : application/postscript
---- XMP-xmp ----
CreatorTool                     : Adobe Illustrator CS2
CreateDate                      : 2009:07:31 11:27:51+01:00
ModifyDate                      : 2009:08:04 10:05:36+01:00
MetadataDate                    : 2009:08:04 10:05:36+01:00
ThumbnailWidth                  : 184
ThumbnailHeight                 : 256
ThumbnailFormat                 : JPEG
ThumbnailImage                  : (Binary data 11477 bytes, use -b option to extract)
---- XMP-xmpMM ----
DocumentID                      : uuid:B7AA8BA1AF7DDE1186468AF0F019B8A9
InstanceID                      : uuid:AE1837F9D580DE11A282E82AD64E0E28
DerivedFromInstanceID           : uuid:E20508400C7DDE118B2CFEAC745DA5DE
DerivedFromDocumentID           : uuid:302198BCF97CDE11A578E285EBFB12F2
---- Composite ----
ImageHeight                     : 842
ImageWidth                      : 596
ImageSize                       : 596x842
[root@tower cs2]# 
Many thanks
ImageMagick 6.5.9-1
GhostScript 8.7
libpng-1.2.43RC1
iMagick 3.0.0RC1
Post Reply