1-bit image

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
timmykgb
Posts: 1
Joined: 2012-05-25T08:51:25-07:00
Authentication code: 13

1-bit image

Post by timmykgb »

Hi,

We have recently moved from outsourcing our dev to doing it in-house. We use imagemajick for any image manipulation. At the moment anyone uploading an image to our site have the option to up-res to press quality (with quality warning). However a lot of people are using QR codes and uploading very low res 1-bit images. Our system currently changes to greyscale and then up-res to 300ppi at the size selected. The results are reasonable, but 1-bit QR codes seem to print better when not turned to greyscale and up-resed (ie left as a 1-bit and just increased in size in Indesign or Quark etc and printed).

So is there a way we could get ImageMagick to recognise that a particular PNG or Tif is a 1-bit file and it won't up-res it as if it was a regular PNG or tif file?

I'm not a programmer, but will forward any questions or comments to our CTO.

Thanks in advance, Tim.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 1-bit image

Post by fmw42 »

Look at the verbose information (identify -verbose your image). See if it says Type Bilevel and/or Depth 1-bit and/or Channel Depth -> gray 1-bit

Image: rose_1bit.png
Format: PNG (Portable Network Graphics)
Class: PseudoClass
Geometry: 70x46+0+0
Resolution: 72x72
Print size: 0.972222x0.638889
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: Undefined
Colorspace: Gray
Depth: 8/1-bit
Channel depth:
gray: 1-bit




Image: rose_1bit.tif
Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 70x46+0+0
Resolution: 72x72
Print size: 0.972222x0.638889
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: MSB
Colorspace: Gray
Depth: 1-bit
Channel depth:
gray: 1-bit


perhaps use -sample (rather than -resize) to enlarge to keep it binary
http://www.imagemagick.org/script/comma ... php#sample
Post Reply