Bitmap or Vector

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?".
Post Reply
Xinerama

Bitmap or Vector

Post by Xinerama »

Is there a command that can discern whether or not the image is a bitmap or a vector?

Also, I though all PNGs were vector.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Bitmap or Vector

Post by anthony »

All postscript, PDF, and SVG files are vector images. Though the former could only be a 'wrapper' around a raster image.

PNG, JPEG, GIF, TIFF, and most other image formats are raster images.


Most video formats are some form of raster image sequences. The most common exception to this is Flash animations which can be generated using vector graphics. This is also why flash animations often has a very cartoon like feel to them.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Xinerama

Re: Bitmap or Vector

Post by Xinerama »

Thanks! I was trying to figure out whether a WMF was a vector or bitmap. I uploaded a bunch of converted files, as you know, and one commenter said I converted vectors to bitmaps. The interesting thing was the WMFs looked a lot worse than the PNGS that I converted.
http://i1022.photobucket.com/albums/af3 ... rama/3.png
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Bitmap or Vector

Post by anthony »

WMF is also a vector image format. IM converts it to raster itself.

Some other programs may convert it better, some worse. You can also try a WMF to Postscript converter (vector to vector) that should be commonly available.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply