USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

sam2p converts raster (bitmap) images to Adobe PS or PDF

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Graphics Applications
View previous topic :: View next topic  
Author Message
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Wed Dec 21, 2024 3:07 am    Post subject: sam2p converts raster (bitmap) images to Adobe PS or PDF Reply with quote

http://www.inf.bme.hu/~pts/sam2p/
Quote:

sam2p is a UNIX command line utility written in ANSI C++ that converts many raster (bitmap) image formats into Adobe PostScript or PDF files and several other formats. The images are not vectorized. sam2p gives full control to the user to specify standards-compliance, compression, and bit depths. In some cases sam2p can compress an image 100 times smaller than the PostScript output of many other common image converters. sam2p provides ZIP, RLE and LZW (de)compression filters even on Level1 devices.


Quote:
The author of sam2p recommends his program over other image image converts because of the following reasons:

* sam2p produces much smaller output
* sam2p gives the user complete control over the data layout of the output image, including Compression, SampleFormat and TransferEncoding
* sam2p is fast
* sam2p doesn't depend on external libraries. (But it depends on external programs for _reading_ JPEG, TIFF and PNG files. These programs are provided as additional, separate packages, available from download from the sam2p web site.)
* sam2p supports the mainstream image formats of today without compromise. sam2p has many file format fine-tuning features that are missing from most other converter utilities. For example: TIFF ZIP compression, TIFF LZW compression, TIFF JPEG compression, transparent PNG files, BMP RLE-4 and RLE-8 compression etc.
* sam2p can create EPS and PDF images with transparency
* sam2p supports all levels (versions) of the PostScript language, and output images have the smallest file size allowed by the LanguageLevel.
* PostScript ZIP, RLE and LZW compression is provided for _all_ LanguageLevels (!), even for PSL1 appeared in 1985. You can print your ZIP-compressed images onto your ancient printer of the 1980s.
* sam2p supports all versions of PDF, and output images have the smallest file size allowed by the version.
* output images of sam2p are always compliant to the standard selected by the user
* output images of sam2p are real-world compatible, i.e the author has tested them with many common image processing programs, for example: Ghostscript, pdfTeX, xpdf, Acrobat Reader, The GIMP, ImageMagick, xv, Acrobat Distiller, QuarkXPress, InDesign. The author has also tested PostScript files on HP and OkiData printers.
* sam2p converts every pixel faithfully, preserving all the 24 RGB bits intact. There is no quality or information loss unless you ask for it.
* sam2p uses only a minimal number of libraries. You don't have to install 33Mb of ballast software to use sam2p. Image libraries (libtiff etc.) are _not_ used, the math library is not used, libstdc++ is not used, zlib is not used.

The author of sam2p recommends his program over ImageMagick:

* sam2p produces much smaller output. A speed increase of a factor of 100 (10000%) in file size can be achieved in extreme circumstances.
* sam2p gives the user complete control over the data layout of the output image, including Compression, SampleFormat and TransferEncoding. ImageMagick provides only a single -compress option, which is often ignored or not used at full capability provided by the file format.
* sam2p is fast, often 10 times faster than ImageMagick
* sam2p doesn't depend on external libraries. You don't have to waste effort for installing zillions of libraries (with versions possibly incompatible with your libc or system) just to convert a GIF file to EPS. You don't have to install 33Mb of ballast software to use sam2p. Image libraries (libtiff etc.) are _not_ used, the math library is not used, libstdc++ is not used, zlib is not used. As a contrast, ImageMagick needs liblcms, libtiff, libfreetype, libjpeg, libpng, libwmflite, X11, libbz2, libxml2, zlib and libpthread.
* sam2p supports the mainstream image formats of today without compromise. sam2p has many file format fine-tuning features that are missing from most other converter utilities. For example: TIFF ZIP compression, TIFF LZW compression, TIFF JPEG compression, transparent PNG files, BMP RLE-4 and RLE-8 compression etc. ImageMagick lacks much of these capabilities. However, sam2p cannot do visible transformations on the image -- use ImageMagick to these transformations, and convert its output with sam2p.
* sam2p can create EPS and PDF images with transparency, ImageMagick cannot.
* sam2p supports all levels (versions) of the PostScript language, and output images have the smallest file size allowed by the LanguageLevel. ImageMagick creates incompliant, incompatible and very large EPS files.
* PostScript ZIP, RLE and LZW compression is provided for _all_ LanguageLevels (!), even for PSL1 appeared in 1985. You can print your ZIP-compressed images onto your ancient printer of the 1980s. ImageMagick provides compression only for PSL2 and PSL3.
* sam2p supports all versions of PDF, and output images have the smallest file size allowed by the version. ImageMagick cannot even create PDF files.
* output images of sam2p are always compliant to the standard selected by the user. ImageMagick sometimes puts the Adobes DSC comments wrong, so the output EPS file is not suitable for embedding.
* output images of sam2p are real-world compatible, i.e the author has tested them with many common image processing programs, for example: Ghostscript, pdfTeX, xpdf, Acrobat Reader, The GIMP, ImageMagick, xv, Acrobat Distiller, QuarkXPress, InDesign. The author has also tested PostScript files on HP and OkiData printers. The subjective opinion of the author is that images created by sam2p are generally more compatible than those created by ImageMagick.
* sam2p converts every pixel faithfully, preserving all the 24 RGB bits intact. There is no quality or information loss unless you ask for it. ImageMagick sometimes downsamples a 24 bit image to a 256-color palette, without displaying any warnings.



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
jbilas
Advanced Member


Joined: 14 Sep 2024
Posts: 924
Location: New York, USA

PostPosted: Wed Dec 21, 2024 1:10 pm    Post subject: Reply with quote

Very nice utility indeed. Some time ago I was looking for a tool that would vectorize an image, which sam2p obviously does not. Does anyone know of one?

EDIT: Oops...first posted here and then saw your other post about AutoTrace Very Happy



_________________
Arch Linux 2.6.24-ARCH
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Graphics Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse