Views
512
Replies
2
Status
Closed
Hi,
starting point is a generic eps file which should be converted into a photoshop eps file manually. I am familiar with the document Adobe Photoshop File Formats Specificaction provided by Adobe which describes briefly the required steps (inserting imagedata tag). Unfortunately there is still a question of how to merge the two different syntaxes (generic eps and photoshop eps).
Can anybody tell me what (and where) I have to insert/modify to get a photoshop eps that does not ask for rasterizing information (see the generic eps file below)?
Thanks a lot for your help.
Michael
—
Here is an excerpt of the mentioned generic eps file generated by imagemagick (respectively ghostscript):
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: (ImageMagick)
%%Title: (image.eps)
%%CreationDate: (Tue Dec 30 19:03:19 2003)
%%BoundingBox: 0 0 300 200
%%HiResBoundingBox: 0 0 300 200
%%LanguageLevel: 2
%%Pages: 1
%%EndComments
%%BeginDefaults
%%EndDefaults
%%BeginProlog
%
% Display a color image. The image is displayed in color on % Postscript viewers or printers that support color, otherwise % it is displayed as grayscale.
%
/DirectClassImage
{
%
% Display a DirectClass image.
%
colorspace 0 eq
{
/DeviceRGB setcolorspace
<<
/ImageType 1
/Width columns
/Height rows
/BitsPerComponent 8
/Decode [0 1 0 1 0 1]
/ImageMatrix [columns 0 0 rows neg 0 rows]
compression 0 gt
{ /DataSource pixel_stream /RunLengthDecode filter }
{ /DataSource pixel_stream /RunLengthDecode filter } ifelse
{
/DeviceCMYK setcolorspace
<<
/ImageType 1
/Width columns
/Height rows
/BitsPerComponent 8
/Decode [1 0 1 0 1 0 1 0]
/ImageMatrix [columns 0 0 rows neg 0 rows]
compression 0 gt
{ /DataSource pixel_stream /RunLengthDecode filter }
{ /DataSource pixel_stream /RunLengthDecode filter } ifelse
} bind def
/PseudoClassImage
{
%
% Display a PseudoClass image.
%
% Parameters:
% colors: number of colors in the colormap.
%
currentfile buffer readline pop
token pop /colors exch def pop
colors 0 eq
{
%
% Image is grayscale.
%
currentfile buffer readline pop
token pop /bits exch def pop
/DeviceGray setcolorspace
<<
/ImageType 1
/Width columns
/Height rows
/BitsPerComponent bits
/Decode [0 1]
/ImageMatrix [columns 0 0 rows neg 0 rows]
compression 0 gt
{ /DataSource pixel_stream /RunLengthDecode filter }
{
/DataSource pixel_stream /RunLengthDecode filter
<<
/K -1
/Columns columns
/Rows rows
{
%
% Parameters:
% colormap: red, green, blue color packets.
%
/colormap colors 3 mul string def
currentfile colormap readhexstring pop pop
currentfile buffer readline pop
[ /Indexed /DeviceRGB colors 1 sub colormap ] setcolorspace <<
/ImageType 1
/Width columns
/Height rows
/BitsPerComponent 8
/Decode [0 255]
/ImageMatrix [columns 0 0 rows neg 0 rows]
compression 0 gt
{ /DataSource pixel_stream /RunLengthDecode filter }
{ /DataSource pixel_stream /RunLengthDecode filter } ifelse
} bind def
/DisplayImage
{
%
% Display a DirectClass or PseudoClass image.
%
% Parameters:
% x & y translation.
% x & y scale.
% label pointsize.
% image label.
% image columns & rows.
% class: 0-DirectClass or 1-PseudoClass.
% colorspace: 0-RGB or 1-CMYK.
% compression: 0-RLECompression or 1-NoCompression.
% hex color packets.
%
gsave
/buffer 512 string def
/pixel_stream currentfile def
currentfile buffer readline pop
token pop /x exch def
token pop /y exch def pop
x y translate
currentfile buffer readline pop
token pop /x exch def
token pop /y exch def pop
currentfile buffer readline pop
token pop /pointsize exch def pop
/Helvetica findfont pointsize scalefont setfont
x y scale
currentfile buffer readline pop
token pop /columns exch def
token pop /rows exch def pop
currentfile buffer readline pop
token pop /class exch def pop
currentfile buffer readline pop
token pop /colorspace exch def pop
currentfile buffer readline pop
token pop /compression exch def pop
class 0 gt { PseudoClassImage } { DirectClassImage } ifelse grestore
} bind def
%%EndProlog
%%Page: 1 1
%%PageBoundingBox: 0 0 300 200
userdict begin
%%BeginData: 241942 Binary Bytes
DisplayImage
0 0
300 200
12.000000
300 200
0
1
0
~Y Y Y X Y Y X X Y Y X Y Y Y Y X Y X Y
…..
%%EndData
end
%%PageTrailer
%%Trailer
%%BoundingBox: 0 0 300 200
%%HiResBoundingBox: 0 0 300 200
%%EOF
starting point is a generic eps file which should be converted into a photoshop eps file manually. I am familiar with the document Adobe Photoshop File Formats Specificaction provided by Adobe which describes briefly the required steps (inserting imagedata tag). Unfortunately there is still a question of how to merge the two different syntaxes (generic eps and photoshop eps).
Can anybody tell me what (and where) I have to insert/modify to get a photoshop eps that does not ask for rasterizing information (see the generic eps file below)?
Thanks a lot for your help.
Michael
—
Here is an excerpt of the mentioned generic eps file generated by imagemagick (respectively ghostscript):
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: (ImageMagick)
%%Title: (image.eps)
%%CreationDate: (Tue Dec 30 19:03:19 2003)
%%BoundingBox: 0 0 300 200
%%HiResBoundingBox: 0 0 300 200
%%LanguageLevel: 2
%%Pages: 1
%%EndComments
%%BeginDefaults
%%EndDefaults
%%BeginProlog
%
% Display a color image. The image is displayed in color on % Postscript viewers or printers that support color, otherwise % it is displayed as grayscale.
%
/DirectClassImage
{
%
% Display a DirectClass image.
%
colorspace 0 eq
{
/DeviceRGB setcolorspace
<<
/ImageType 1
/Width columns
/Height rows
/BitsPerComponent 8
/Decode [0 1 0 1 0 1]
/ImageMatrix [columns 0 0 rows neg 0 rows]
compression 0 gt
{ /DataSource pixel_stream /RunLengthDecode filter }
{ /DataSource pixel_stream /RunLengthDecode filter } ifelse
}image
{
/DeviceCMYK setcolorspace
<<
/ImageType 1
/Width columns
/Height rows
/BitsPerComponent 8
/Decode [1 0 1 0 1 0 1 0]
/ImageMatrix [columns 0 0 rows neg 0 rows]
compression 0 gt
{ /DataSource pixel_stream /RunLengthDecode filter }
{ /DataSource pixel_stream /RunLengthDecode filter } ifelse
} ifelseimage
} bind def
/PseudoClassImage
{
%
% Display a PseudoClass image.
%
% Parameters:
% colors: number of colors in the colormap.
%
currentfile buffer readline pop
token pop /colors exch def pop
colors 0 eq
{
%
% Image is grayscale.
%
currentfile buffer readline pop
token pop /bits exch def pop
/DeviceGray setcolorspace
<<
/ImageType 1
/Width columns
/Height rows
/BitsPerComponent bits
/Decode [0 1]
/ImageMatrix [columns 0 0 rows neg 0 rows]
compression 0 gt
{ /DataSource pixel_stream /RunLengthDecode filter }
{
/DataSource pixel_stream /RunLengthDecode filter
<<
/K -1
/Columns columns
/Rows rows
} ifelse/CCITTFaxDecode filter
}image
{
%
% Parameters:
% colormap: red, green, blue color packets.
%
/colormap colors 3 mul string def
currentfile colormap readhexstring pop pop
currentfile buffer readline pop
[ /Indexed /DeviceRGB colors 1 sub colormap ] setcolorspace <<
/ImageType 1
/Width columns
/Height rows
/BitsPerComponent 8
/Decode [0 255]
/ImageMatrix [columns 0 0 rows neg 0 rows]
compression 0 gt
{ /DataSource pixel_stream /RunLengthDecode filter }
{ /DataSource pixel_stream /RunLengthDecode filter } ifelse
} ifelseimage
} bind def
/DisplayImage
{
%
% Display a DirectClass or PseudoClass image.
%
% Parameters:
% x & y translation.
% x & y scale.
% label pointsize.
% image label.
% image columns & rows.
% class: 0-DirectClass or 1-PseudoClass.
% colorspace: 0-RGB or 1-CMYK.
% compression: 0-RLECompression or 1-NoCompression.
% hex color packets.
%
gsave
/buffer 512 string def
/pixel_stream currentfile def
currentfile buffer readline pop
token pop /x exch def
token pop /y exch def pop
x y translate
currentfile buffer readline pop
token pop /x exch def
token pop /y exch def pop
currentfile buffer readline pop
token pop /pointsize exch def pop
/Helvetica findfont pointsize scalefont setfont
x y scale
currentfile buffer readline pop
token pop /columns exch def
token pop /rows exch def pop
currentfile buffer readline pop
token pop /class exch def pop
currentfile buffer readline pop
token pop /colorspace exch def pop
currentfile buffer readline pop
token pop /compression exch def pop
class 0 gt { PseudoClassImage } { DirectClassImage } ifelse grestore
} bind def
%%EndProlog
%%Page: 1 1
%%PageBoundingBox: 0 0 300 200
userdict begin
%%BeginData: 241942 Binary Bytes
DisplayImage
0 0
300 200
12.000000
300 200
0
1
0
~Y Y Y X Y Y X X Y Y X Y Y Y Y X Y X Y
…..
%%EndData
end
%%PageTrailer
%%Trailer
%%BoundingBox: 0 0 300 200
%%HiResBoundingBox: 0 0 300 200
%%EOF
Related Tags
How to Improve Photoshop Performance
Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!