0
Images in PostScript
New Here
,
/t5/postscript-discussions/images-in-postscript/td-p/1606488
Jul 18, 2008
Jul 18, 2008
Copy link to clipboard
Copied
Hi!
I am kind of new in PostScrip programming (actually code generation from C) and I want to know if there are some kind of encoding of an image when you need to write what it contains in the .ps files.
Can I write the bytes it contains using hexadecimal numbers or is there some kind of encoding I have to do.
Thanks in advance!
I am kind of new in PostScrip programming (actually code generation from C) and I want to know if there are some kind of encoding of an image when you need to write what it contains in the .ps files.
Can I write the bytes it contains using hexadecimal numbers or is there some kind of encoding I have to do.
Thanks in advance!
TOPICS
Programming
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/postscript-discussions/images-in-postscript/m-p/1606489#M13
Jul 18, 2008
Jul 18, 2008
Copy link to clipboard
Copied
PostScript is very flexible. You can use raw data (but many printers
will choke on this), simple hexadecimal, or a combination of filters
(such as LZW encoding then ASCII 85 conversion).
Aandi Inston
will choke on this), simple hexadecimal, or a combination of filters
(such as LZW encoding then ASCII 85 conversion).
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_Gigi_Marcu_
AUTHOR
New Here
,
/t5/postscript-discussions/images-in-postscript/m-p/1606490#M14
Jul 18, 2008
Jul 18, 2008
Copy link to clipboard
Copied
I have read something about LZW and ASCII 85 conversion and it seems like a little work, that i don't want to do for nothing.
Do you think the combination of filters is much better than simple hexadecimal?
Do you think the combination of filters is much better than simple hexadecimal?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/postscript-discussions/images-in-postscript/m-p/1606491#M15
Jul 18, 2008
Jul 18, 2008
Copy link to clipboard
Copied
The only reason to use ASCII85 rather than ASCII, and the only reason
to use LZW rather than nothing, is because it makes a smaller file.
The smaller file might get to the printer more quickly. LZW is more
work for the printer, so it potentially prints more slowly when it
arrives.
Aandi Inston
to use LZW rather than nothing, is because it makes a smaller file.
The smaller file might get to the printer more quickly. LZW is more
work for the printer, so it potentially prints more slowly when it
arrives.
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_Gigi_Marcu_
AUTHOR
New Here
,
/t5/postscript-discussions/images-in-postscript/m-p/1606492#M16
Jul 18, 2008
Jul 18, 2008
Copy link to clipboard
Copied
I understand.
Thanks for the tips!
Thanks for the tips!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/postscript-discussions/images-in-postscript/m-p/1606493#M17
Jul 22, 2008
Jul 22, 2008
Copy link to clipboard
Copied
Hi
Tell me if i got this straight ...
If i have a jpeg image and i want to make it smaller i have to take the binary file that represent the picture and apply the LZW encoding, and after that an ASCII85 conversion.
Would tis work?
I ask this because i have already implemented this and I want to see I have any logical problem.
David
Tell me if i got this straight ...
If i have a jpeg image and i want to make it smaller i have to take the binary file that represent the picture and apply the LZW encoding, and after that an ASCII85 conversion.
Would tis work?
I ask this because i have already implemented this and I want to see I have any logical problem.
David
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explorer
,
/t5/postscript-discussions/images-in-postscript/m-p/1606494#M18
Jul 22, 2008
Jul 22, 2008
Copy link to clipboard
Copied
>If i have a jpeg image and i want to make it smaller i have to take the binary file that represent the picture and apply the LZW encoding, and after that an ASCII85 conversion.
Well, that would produce a valid image but it would be larger than the
JPEG in most cases.
For most JPEG files you can use them directly, treating them as having
DCT encoding, then apply ASCII85.
Aandi Inston
Well, that would produce a valid image but it would be larger than the
JPEG in most cases.
For most JPEG files you can use them directly, treating them as having
DCT encoding, then apply ASCII85.
Aandi Inston
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
LATEST
/t5/postscript-discussions/images-in-postscript/m-p/1606495#M19
Oct 28, 2008
Oct 28, 2008
Copy link to clipboard
Copied
Hi Gigi n Aandi,
If you have a jpeg image and you want to make it smaller,then you can use "SCALING"
The scale operator allows you to change the size of the units,so that the image can be compressed.
Regards,
Navaneeth Sivappan
If you have a jpeg image and you want to make it smaller,then you can use "SCALING"
The scale operator allows you to change the size of the units,so that the image can be compressed.
Regards,
Navaneeth Sivappan
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

