CMYK EPS to Transparent Tiff (CMYK)
CMYK EPS to Transparent Tiff (CMYK)
Hi everyone, first post so please be kind :3
I have a EPS (CMYK) that I need to convert into a transparent TIFF (also in CMYK). Reason being is that the I'm using TCPDF library to output PDFs for print and if I have a transparent image it can't be turned into a jpeg (that's another story).
So yeah, I have an eps that spits out the following for identify:
Image: transparent.eps
Format: EPT (Encapsulated PostScript with TIFF preview)
Class: DirectClass
Geometry: 1348x913+0+0
Resolution: 72x72
Print size: 18.7222x12.6806
Units: Undefined
Type: ColorSeparation
Base type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK
Depth: 16/8-bit
Channel depth:
cyan: 8-bit
magenta: 8-bit
yellow: 8-bit
black: 1-bit
Channel statistics:
Cyan:
min: 0 (0)
max: 49601 (0.756863)
mean: 2078.8 (0.0317204)
standard deviation: 6695.16 (0.102162)
kurtosis: 16.3262
skewness: 3.96206
Magenta:
min: 0 (0)
max: 27756 (0.423529)
mean: 20.3863 (0.000311075)
standard deviation: 431.983 (0.00659163)
kurtosis: 1231.99
skewness: 31.1863
Yellow:
min: 0 (0)
max: 65535 (1)
mean: 2426.4 (0.0370245)
standard deviation: 8922.59 (0.13615)
kurtosis: 26.2352
skewness: 4.95562
Black:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
Image statistics:
Overall:
min: 0 (0)
max: 65535 (1)
mean: 1131.4 (0.017264)
standard deviation: 5581.77 (0.0851723)
kurtosis: 60.8591
skewness: 7.40066
Total ink density: 164%
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: cmyk(223,223,223,0)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 1348x913+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
date:create: 2014-07-08T16:25:42+01:00
date:modify: 2014-07-08T16:25:43+01:00
dc:format: application/postscript
pdf:Producer: Adobe PDF library 9.90
ps:HiResBoundingBox: 1348x913+0+0
ps:Level: Adobe-3.0 EPSF-3.0
ps:SpotColor-0: procset Adobe_CoolType_Utility_T42 1.0 0
ps:SpotColor-1: procset Adobe_CoolType_Utility_MAKEOCF 1.23 0
ps:SpotColor-2: procset Adobe_CoolType_Core 2.31 0
ps:SpotColor-3: procset Adobe_AGM_Core 2.0 0
ps:SpotColor-4: procset Adobe_AGM_Utils 1.0 0
rdf:Alt:
signature: 9be41279272b4dfc22e50675c183a03c804a0b077c05741c9e9609f4ebc047a4
stDim:h: 296.999942
stDim:unit: Millimeters
stDim:w: 419.999513
stRef:documentID: xmp.did:a3b497b7-cf5f-af4b-a92e-62ba85d6c7c9
stRef:instanceID: xmp.iid:a3b497b7-cf5f-af4b-a92e-62ba85d6c7c9
stRef:originalDocumentID: uuid:ea15eeb8-0771-0546-871a-ae48af2517a1
stRef:renditionClass: proof:pdf
xmp:CreateDate: 2014-07-08T16:11:48+01:00
xmp:CreatorTool: Adobe Illustrator CC (Windows)
xmp:MetadataDate: 2014-07-08T16:11:49+01:00
xmp:ModifyDate: 2014-07-08T16:11:49+01:00
xmpMM:DocumentID: xmp.did:0bce9efc-ff70-1b4d-a6cd-cba23056c301
xmpMM:InstanceID: xmp.iid:0bce9efc-ff70-1b4d-a6cd-cba23056c301
xmpMM:OriginalDocumentID: uuid:ea15eeb8-0771-0546-871a-ae48af2517a1
xmpMM:RenditionClass: proof:pdf
xmpTPg:HasVisibleOverprint: False
xmpTPg:HasVisibleTransparency: False
xmpTPg:NPages: 1
Profiles:
Profile-xmp: 46073 bytes
Artifacts:
verbose: true
Tainted: False
Filesize: 4.923MB
Number pixels: 1.231M
Pixels per second: 53.51M
User time: 0.031u
Elapsed time: 0:01.023
Version: ImageMagick 6.6.3-8 2010-08-16 Q16 http://www.imagemagick.org
--------------------
Here I see that the transparent background is "black", so I create a convert function as below:
convert -density 300 transparent.eps -colorspace cmyk -transparent black -alpha on test11.tiff
So thinking that it should turn all the 'black' into transparent. However, the EPS has white clipping area grouped with the other colours... this turns transparent as well when it shouldn't. So I get transparency, but I lose all my white.
Is this a bug or have I missed out an option.
Here are my output file
http://www.filedropper.com/test11
and here is my expected output file
http://www.filedropper.com/test_118
I have a EPS (CMYK) that I need to convert into a transparent TIFF (also in CMYK). Reason being is that the I'm using TCPDF library to output PDFs for print and if I have a transparent image it can't be turned into a jpeg (that's another story).
So yeah, I have an eps that spits out the following for identify:
Image: transparent.eps
Format: EPT (Encapsulated PostScript with TIFF preview)
Class: DirectClass
Geometry: 1348x913+0+0
Resolution: 72x72
Print size: 18.7222x12.6806
Units: Undefined
Type: ColorSeparation
Base type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK
Depth: 16/8-bit
Channel depth:
cyan: 8-bit
magenta: 8-bit
yellow: 8-bit
black: 1-bit
Channel statistics:
Cyan:
min: 0 (0)
max: 49601 (0.756863)
mean: 2078.8 (0.0317204)
standard deviation: 6695.16 (0.102162)
kurtosis: 16.3262
skewness: 3.96206
Magenta:
min: 0 (0)
max: 27756 (0.423529)
mean: 20.3863 (0.000311075)
standard deviation: 431.983 (0.00659163)
kurtosis: 1231.99
skewness: 31.1863
Yellow:
min: 0 (0)
max: 65535 (1)
mean: 2426.4 (0.0370245)
standard deviation: 8922.59 (0.13615)
kurtosis: 26.2352
skewness: 4.95562
Black:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
Image statistics:
Overall:
min: 0 (0)
max: 65535 (1)
mean: 1131.4 (0.017264)
standard deviation: 5581.77 (0.0851723)
kurtosis: 60.8591
skewness: 7.40066
Total ink density: 164%
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: cmyk(223,223,223,0)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 1348x913+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
date:create: 2014-07-08T16:25:42+01:00
date:modify: 2014-07-08T16:25:43+01:00
dc:format: application/postscript
pdf:Producer: Adobe PDF library 9.90
ps:HiResBoundingBox: 1348x913+0+0
ps:Level: Adobe-3.0 EPSF-3.0
ps:SpotColor-0: procset Adobe_CoolType_Utility_T42 1.0 0
ps:SpotColor-1: procset Adobe_CoolType_Utility_MAKEOCF 1.23 0
ps:SpotColor-2: procset Adobe_CoolType_Core 2.31 0
ps:SpotColor-3: procset Adobe_AGM_Core 2.0 0
ps:SpotColor-4: procset Adobe_AGM_Utils 1.0 0
rdf:Alt:
signature: 9be41279272b4dfc22e50675c183a03c804a0b077c05741c9e9609f4ebc047a4
stDim:h: 296.999942
stDim:unit: Millimeters
stDim:w: 419.999513
stRef:documentID: xmp.did:a3b497b7-cf5f-af4b-a92e-62ba85d6c7c9
stRef:instanceID: xmp.iid:a3b497b7-cf5f-af4b-a92e-62ba85d6c7c9
stRef:originalDocumentID: uuid:ea15eeb8-0771-0546-871a-ae48af2517a1
stRef:renditionClass: proof:pdf
xmp:CreateDate: 2014-07-08T16:11:48+01:00
xmp:CreatorTool: Adobe Illustrator CC (Windows)
xmp:MetadataDate: 2014-07-08T16:11:49+01:00
xmp:ModifyDate: 2014-07-08T16:11:49+01:00
xmpMM:DocumentID: xmp.did:0bce9efc-ff70-1b4d-a6cd-cba23056c301
xmpMM:InstanceID: xmp.iid:0bce9efc-ff70-1b4d-a6cd-cba23056c301
xmpMM:OriginalDocumentID: uuid:ea15eeb8-0771-0546-871a-ae48af2517a1
xmpMM:RenditionClass: proof:pdf
xmpTPg:HasVisibleOverprint: False
xmpTPg:HasVisibleTransparency: False
xmpTPg:NPages: 1
Profiles:
Profile-xmp: 46073 bytes
Artifacts:
verbose: true
Tainted: False
Filesize: 4.923MB
Number pixels: 1.231M
Pixels per second: 53.51M
User time: 0.031u
Elapsed time: 0:01.023
Version: ImageMagick 6.6.3-8 2010-08-16 Q16 http://www.imagemagick.org
--------------------
Here I see that the transparent background is "black", so I create a convert function as below:
convert -density 300 transparent.eps -colorspace cmyk -transparent black -alpha on test11.tiff
So thinking that it should turn all the 'black' into transparent. However, the EPS has white clipping area grouped with the other colours... this turns transparent as well when it shouldn't. So I get transparency, but I lose all my white.
Is this a bug or have I missed out an option.
Here are my output file
http://www.filedropper.com/test11
and here is my expected output file
http://www.filedropper.com/test_118
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: CMYK EPS to Transparent Tiff (CMYK)
Where is the input eps file? We would need that to test. Also your IM version is extremely old (over 250 versions old). Many bugs have been fixed and this may have been corrected if really an issue. Your best bet would be to upgrade IM and your delegate libraries.
Re: CMYK EPS to Transparent Tiff (CMYK)
I will test on the latest tonight and give you an update.
But attached is the eps file.
http://www.filedropper.com/transparent_1
Many thanks
But attached is the eps file.
http://www.filedropper.com/transparent_1
Many thanks
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: CMYK EPS to Transparent Tiff (CMYK)
Sorry, I don;t have time to look at the file just now, but I see an immediate problem with:
"black" is a synonym for "#000" which isn't (I think) black in CMYK space. I think it is white.convert -density 300 transparent.eps -colorspace cmyk -transparent black -alpha on test11.tiff
snibgo's IM pages: im.snibgo.com
Re: CMYK EPS to Transparent Tiff (CMYK)
Hi there,
Got to another development server which has a pretty update installation. Here is the verbose identify for the eps.
Image: transparent.eps
Format: EPT (Encapsulated PostScript with TIFF preview)
Class: DirectClass
Geometry: 1347x913+0+0
Resolution: 72x72
Print size: 18.7083x12.6806
Units: Undefined
Type: ColorSeparation
Base type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK
Depth: 16/8-bit
Channel depth:
cyan: 8-bit
magenta: 8-bit
yellow: 8-bit
black: 1-bit
Channel statistics:
Cyan:
min: 0 (0)
max: 49601 (0.756863)
mean: 2080.34 (0.031744)
standard deviation: 6697.4 (0.102196)
kurtosis: 16.3109
skewness: 3.96033
Magenta:
min: 0 (0)
max: 27756 (0.423529)
mean: 20.397 (0.000311239)
standard deviation: 432.088 (0.00659323)
kurtosis: 1231.59
skewness: 31.1811
Yellow:
min: 0 (0)
max: 65535 (1)
mean: 2428.2 (0.037052)
standard deviation: 8925.66 (0.136197)
kurtosis: 26.2126
skewness: 4.9536
Black:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
Image statistics:
Overall:
min: 0 (0)
max: 65535 (1)
mean: 1132.24 (0.0172768)
standard deviation: 5583.67 (0.0852013)
kurtosis: 60.8151
skewness: 7.39813
Total ink density: 163.529%
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: cmyk(255,255,255,0)
Border color: cmyk(223,223,223,0)
Matte color: cmyk(189,189,189,0)
Transparent color: cmyk(0,0,0,0)
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 1347x913+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
date:create: 2014-07-08T17:43:32+00:00
date:modify: 2014-07-08T17:43:32+00:00
dc:format: application/postscript
pdf:Producer: Adobe PDF library 9.90
ps:HiResBoundingBox: 1347.33x912.667+0+0
ps:Level: Adobe-3.0 EPSF-3.0
ps:SpotColor-0: procset Adobe_CoolType_Utility_T42 1.0 0
ps:SpotColor-1: procset Adobe_CoolType_Utility_MAKEOCF 1.23 0
ps:SpotColor-2: procset Adobe_CoolType_Core 2.31 0
ps:SpotColor-3: procset Adobe_AGM_Core 2.0 0
ps:SpotColor-4: procset Adobe_AGM_Utils 1.0 0
ps:SpotColor-5:
ps:SpotColor-6:
signature: 89efd8bc5fa73f9e2c38ddc7967c50ee5fd85e73064043ecc03b58c4a5d5d72f
stDim:h: 296.999942
stDim:unit: Millimeters
stDim:w: 419.999513
stRef:documentID: xmp.did:9D8FDBC96F2268118083AA81A9DF4C08
stRef:instanceID: uuid:504cef71-a68c-5f42-b60d-55e6f585aa79
stRef:originalDocumentID: uuid:ea15eeb8-0771-0546-871a-ae48af2517a1
stRef:renditionClass: proof:pdf
xmp:CreateDate: 2012-01-26T10:25:45Z
xmp:CreatorTool: Adobe Illustrator CS5.1
xmp:MetadataDate: 2012-01-26T10:25:45Z
xmp:ModifyDate: 2012-01-26T10:25:45Z
xmpMM:DocumentID: xmp.did:9F8FDBC96F2268118083AA81A9DF4C08
xmpMM:InstanceID: xmp.iid:9F8FDBC96F2268118083AA81A9DF4C08
xmpMM:OriginalDocumentID: uuid:ea15eeb8-0771-0546-871a-ae48af2517a1
xmpMM:RenditionClass: proof:pdf
xmpTPg:HasVisibleOverprint: False
xmpTPg:HasVisibleTransparency: False
xmpTPg:NPages: 1
Profiles:
Profile-xmp: 45157 bytes
Artifacts:
filename: transparent.eps
verbose: true
Tainted: False
Filesize: 4.919MB
Number pixels: 1.23M
Pixels per second: 30.75MB
User time: 0.030u
Elapsed time: 0:01.039
Version: ImageMagick 6.8.9-4 Q16 x86_64 2014-06-27 http://www.imagemagick.org
Tested it using the same command
And it still produces the same unwanted result (maintains transparency but removes the white).
So this means to maintain transparency I need to remove this white... but there is already white on this file that is wanted...
How would I work with that? Is that an issue with the eps?
I tried this command:
And this produces the same unwanted result as before.
Got to another development server which has a pretty update installation. Here is the verbose identify for the eps.
Image: transparent.eps
Format: EPT (Encapsulated PostScript with TIFF preview)
Class: DirectClass
Geometry: 1347x913+0+0
Resolution: 72x72
Print size: 18.7083x12.6806
Units: Undefined
Type: ColorSeparation
Base type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK
Depth: 16/8-bit
Channel depth:
cyan: 8-bit
magenta: 8-bit
yellow: 8-bit
black: 1-bit
Channel statistics:
Cyan:
min: 0 (0)
max: 49601 (0.756863)
mean: 2080.34 (0.031744)
standard deviation: 6697.4 (0.102196)
kurtosis: 16.3109
skewness: 3.96033
Magenta:
min: 0 (0)
max: 27756 (0.423529)
mean: 20.397 (0.000311239)
standard deviation: 432.088 (0.00659323)
kurtosis: 1231.59
skewness: 31.1811
Yellow:
min: 0 (0)
max: 65535 (1)
mean: 2428.2 (0.037052)
standard deviation: 8925.66 (0.136197)
kurtosis: 26.2126
skewness: 4.9536
Black:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
Image statistics:
Overall:
min: 0 (0)
max: 65535 (1)
mean: 1132.24 (0.0172768)
standard deviation: 5583.67 (0.0852013)
kurtosis: 60.8151
skewness: 7.39813
Total ink density: 163.529%
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: cmyk(255,255,255,0)
Border color: cmyk(223,223,223,0)
Matte color: cmyk(189,189,189,0)
Transparent color: cmyk(0,0,0,0)
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 1347x913+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
date:create: 2014-07-08T17:43:32+00:00
date:modify: 2014-07-08T17:43:32+00:00
dc:format: application/postscript
pdf:Producer: Adobe PDF library 9.90
ps:HiResBoundingBox: 1347.33x912.667+0+0
ps:Level: Adobe-3.0 EPSF-3.0
ps:SpotColor-0: procset Adobe_CoolType_Utility_T42 1.0 0
ps:SpotColor-1: procset Adobe_CoolType_Utility_MAKEOCF 1.23 0
ps:SpotColor-2: procset Adobe_CoolType_Core 2.31 0
ps:SpotColor-3: procset Adobe_AGM_Core 2.0 0
ps:SpotColor-4: procset Adobe_AGM_Utils 1.0 0
ps:SpotColor-5:
ps:SpotColor-6:
signature: 89efd8bc5fa73f9e2c38ddc7967c50ee5fd85e73064043ecc03b58c4a5d5d72f
stDim:h: 296.999942
stDim:unit: Millimeters
stDim:w: 419.999513
stRef:documentID: xmp.did:9D8FDBC96F2268118083AA81A9DF4C08
stRef:instanceID: uuid:504cef71-a68c-5f42-b60d-55e6f585aa79
stRef:originalDocumentID: uuid:ea15eeb8-0771-0546-871a-ae48af2517a1
stRef:renditionClass: proof:pdf
xmp:CreateDate: 2012-01-26T10:25:45Z
xmp:CreatorTool: Adobe Illustrator CS5.1
xmp:MetadataDate: 2012-01-26T10:25:45Z
xmp:ModifyDate: 2012-01-26T10:25:45Z
xmpMM:DocumentID: xmp.did:9F8FDBC96F2268118083AA81A9DF4C08
xmpMM:InstanceID: xmp.iid:9F8FDBC96F2268118083AA81A9DF4C08
xmpMM:OriginalDocumentID: uuid:ea15eeb8-0771-0546-871a-ae48af2517a1
xmpMM:RenditionClass: proof:pdf
xmpTPg:HasVisibleOverprint: False
xmpTPg:HasVisibleTransparency: False
xmpTPg:NPages: 1
Profiles:
Profile-xmp: 45157 bytes
Artifacts:
filename: transparent.eps
verbose: true
Tainted: False
Filesize: 4.919MB
Number pixels: 1.23M
Pixels per second: 30.75MB
User time: 0.030u
Elapsed time: 0:01.039
Version: ImageMagick 6.8.9-4 Q16 x86_64 2014-06-27 http://www.imagemagick.org
Tested it using the same command
Code: Select all
convert -density 300 transparent.eps -colorspace cmyk -transparent black -alpha on testagain.tiff
Ok, I can understand that. Looking at the latest identify dump it does say thatSorry, I don;t have time to look at the file just now, but I see an immediate problem with:
convert -density 300 transparent.eps -colorspace cmyk -transparent black -alpha on test11.tiff
"black" is a synonym for "#000" which isn't (I think) black in CMYK space. I think it is white.
Code: Select all
Transparent color: cmyk(0,0,0,0)
How would I work with that? Is that an issue with the eps?
I tried this command:
Code: Select all
convert -density 300 transparent.eps -transparent "cmyk(0%,0%,0%,0%)" testme.tiff
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: CMYK EPS to Transparent Tiff (CMYK)
Your file downloads as an HTML file. I would either add .eps to the filename or try another free hosting service that knows how to deal with eps files, such as dropbox.com (public folder).
Re: CMYK EPS to Transparent Tiff (CMYK)
No Problem.
Here is the EPS file via Dropbox.
https://www.dropbox.com/s/3gze9234bbmlz ... parent.eps
Here is the EPS file via Dropbox.
https://www.dropbox.com/s/3gze9234bbmlz ... parent.eps
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: CMYK EPS to Transparent Tiff (CMYK)
A simple conversion of the file creates no black pixels, as shown by:
Looking at the image, I doubt that changing density would create black pixels.
I don't understand what you want to do.
Code: Select all
convert transparent.eps -unique-colors txt:
I don't understand what you want to do.
snibgo's IM pages: im.snibgo.com
Re: CMYK EPS to Transparent Tiff (CMYK)
Hi snibgoA simple conversion of the file creates no black pixels, as shown by:
Code: Select all
convert transparent.eps -unique-colors txt:
Looking at the image, I doubt that changing density would create black pixels.
I don't understand what you want to do.
I want to convert this EPS into a transparent TIFF.
https://www.dropbox.com/s/3gze9234bbmlz ... parent.eps
This is how I would want it to be converted into - maintaining transparency (see below).
https://www.dropbox.com/s/rm0buwyhg9a1ilh/test.tif
However, this is what I am getting when I convert - following the identify verbose transparent color - it takes away all the white, leaving the wave.
https://www.dropbox.com/s/ves1roxew2j1nnb/testme.tiff
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: CMYK EPS to Transparent Tiff (CMYK)
test.tiff is CMYK with unassociated alpha. The top-left area has alpha=0, the shape and the rest of the image has alpha=1, and there is anti-aliasing at the boundary.
transparent.eps seems to have no alpha data. There are Photoshop spot colours, which IM will ignore. It is CMYK, so white is #000.
I can make all the pixels that are exactly white transparent:
Or do this as a flood-fill from top-left:
These commands aren't anti-aliased, and the alpha is associated. But is it (nearly) what you want?
transparent.eps seems to have no alpha data. There are Photoshop spot colours, which IM will ignore. It is CMYK, so white is #000.
I can make all the pixels that are exactly white transparent:
Code: Select all
convert transparent.eps -transparent #000 t.tiff
Code: Select all
convert transparent.eps -alpha set -fuzz 10% -fill None -floodfill +0+0 #000 t.tiff
snibgo's IM pages: im.snibgo.com