New answers tagged

0

Use Inkscape to convert SVG to PNG Inkscape supports command line. Below is the command for converting SVG to PNG. I have successfully converted the SVG to PNG. inkscape --without-gui --file=kv.svg --export-area-drawing --export-area-page --export-dpi=300 --export-png=kv.png


0

I believe that Netpbm's pamthreshold is a much faster and more flexible solution. For TIFF files, I do $ tifftopnm test.tiff | pamthreshold | pamtotiff > bitonal.tiff For Jpeg files you can do $ jpegtopnm test.jpeg | pamthreshold | pamtotiff > bitonal.tiff Pamthreshold is rather powerful (take a look at its man page).


0

Old question, but it might help somebody else: there's imageJ, an app written in Java, which allows to add macros. One of the examples they provide is PickerPixelTool, that lets you click pixels and sends their coordinates to a window, which you can save afterwards.


0

You must do this by checking the file type signatures. It can be found here, or you can find it by trial and error checking your files. For example, JPG signature is FF D8 FF E0, which means it's first four bytes must be equal to FF D8 FF E0. All you need is a tool to match these bytes with those of the file. As an example, hexdump -n 4 -C file.jpg| awk '{...


0

Try this: convert foo.png -page A4 bar.pdf



Top 50 recent answers are included