![]() Image editors such as Gimp must show every single pixel separately if you zoom in enough. scale is needed instead of -resize, since -resize mixes pixel colors continuously up much like eog by default.Īnther option is to view it in Gimp: gimp out.png Or directly in one go with: convert -depth 8 -size 3x2+0 gray:in.bin -scale 300x out.png One good possibility is to run: convert out.png -scale 300x out2.png Is not very good because the image is too small, and if you zoom in a lot eog uses a display algorithm that mixes up pixels continuously, which is better for most pictures, but not for such a tiny image. The problem now is how to view the such a tiny 3x2 output accurately. How to view such tiny outputs like this example gray:in.bin: the input file is in.bin, and the format is gray, as defined at This weird notation is used because ImageMagick usually determines the format from the extension, but here there is no extension.If there are metadata headers, you can skip them with the offset. +0 means starting at offset 0 in the file. Then: convert -depth 8 -size 3x2+0 gray:in.bin out.png
0 Comments
Leave a Reply. |