Posts Tagged ‘JBIG2’

Which bitmap format to choose

Hi folks,

Following the short suite of articles that briefly described the most popular raster graphics file formats, today we will try to make a synthesis and see which format would be a best choice for which purpose.

Image capturing
When capturing images, either by scanning a document or taking a photo, the best idea would probably be to get the highest quality possible and keep the full amount of details.
The initial capture file is a “master” file so, unless you can repeat the same capture process anytime or don’t care about long term preservation, you can store it somewhere safe and convert it to other formats for current manipulation.
And if you think that such practice is for professionals only, you’d better think again.
IT evolves at highest speed: image acquiring quality is increasing, bandwidths are getting larger and cheaper, storage spaces too and image quality standards are adapting accordingly so what was considered a professional level of quality few years ago, today is widely common.
So you shouldn’t be afraid to use TIFF format as best choice for richest captures.
But there’s always PNG at disposal too of course.

Image handling
Chosing a format for image handling depends mainly on the kind of image involved but also on its manipulation purpose.
For example, JPEG is notoriously the best choice for photos offering an optimum quality vs. size ratio, we’ve explained you previously how this was achieved.
JPEG can be used especially for smooth-toned images but due to its small sizes, even if quality-lossy, it can be used for any kind of images including documents.
Actually, when it comes to documents to be shared at real minimal size with least acceptable quality, there is JBIG2.
Making a visual comparison between a JPEG and a JBIG2 format version of a same document might seem to turn JPEG into a winner.
But for large amounts of documents or for transfering documents through busy networks, JBIG2 is a life-saviour.
In case the quality of the document is really important, PNG should do the trick.
For web graphics, GIF and PNG are largely prefered.
They both are palette-based and the file-sizes depend on bit depth and on the number of colors of the palette, one basic difference being that GIF allows animations while PNG supports gradual transparency.
So they both are well-suited for webdesign items like logos, buttons, banners and so forth, the choice depending on graphic artist’s intentions.
For short animations (today used mostly for tutorial/explanatory purposes) GIF is the only choice, similar to how PNG is the only choice for graphics where variable transparency is required.
As you’ve probably noticed, we’ve mentioned PNG several times above as it can be used for full-colour images with lossless compression, continuous-tone full-colour images at the highest quality (not highest compression), B/W and greyscale images, for desktop and web purposes, thus making PNG a reliable and versatile quick choice solution when there is no real pressure for a certain requirement.

Image printing
Normal printers are designed to work fairly well with all kind of image file formats.
But if printing quality is a serious requirement (talking about desktop printing quality level, not highly professional level) then the “give me most possible data from uncompressed source and I’ll give you best possible result” principle applies.
In other words: use TIFF.
Which is yet another reason for you to consider the initial recommendation above of keeping “master” files.

Well, the circle being closed now, let’s just add that we’ve tried to keep everything as basic as possible.
There are many aspects and details we’ve intentionally skipped because the scope of our blog articles is simplicity.
But if complexity is what you need, please feel free to use GdPicture.NET SDK to build applications controling every possible detail of images in more than 90 supported file formats.
And if you’re not into software development, have no worries: we’ve already built such application for you.
It is called PaperScan and it can be downloaded from here.

See you next week, folks!


Big Browser on August 23

Some iRumours Read article Average Income per Programming Language Read article The Story of the PING Program Read article Meet the NASA scientist devising a starship warp drive Read article Google can't have dotless domains, rules ICANN regulator Read article

About JBIG2 compression

Hello folks,

Although disk storage and internet connection bandwidth are constantly increasing and getting cheaper, worldwide efforts for better file compression are increasing as well.
This is no paradox and there are too many reasons for this to mention but we all know that, for instance, file transfers are never fast enough.

For document imaging domain there is JBIG2 compression scheme.
JBIG2 is an acronym for “Joint Bilevel Imaging Group 2“.
JBIG2 compression results are incredible and perfectly suited for efficient storage and greater speed of transmission: sometime 10x better than TIFF G3, G4, or JBIG (also known as JBIG1).
Technical details are beyond the scope of this article, you can find some in the dedicated Wikipedia article and more from the official website, of course.

Users handling big archives (compared to existing storage space), users applying the good practice of maintaining a document/image archives backup or users who simply prefer faster transfers via email or file sharing apps. might be interested in such a performant compression rate.
Resulting images are black and white (bi-level) but all the information is there and it’s up to ten times smaller. And ten times faster to share.

This is why we have included JBIG2 file format support in all our software products (SDK and end-user products).
We issued this article because we feel that JBIG2 is still relatively unknown to general public.
And it surely deserves better.

Our end-user products:


Free Home PRO

View JBIG2 files (single and multipage .jb2)
yes yes yes
View PDF files with embedded JBIG2 encoded bitmap
yes yes yes
Save as single page JBIG2 file (.jb2) or PDF with embedded JBIG2 bitmap
yes yes yes
Save as multipage JBIG2 file (.jb2) or PDF with embedded JBIG2 bitmap
no yes yes

Our GdPicture.NET SDK:

All GdPicture.NET SDK Editions (except for “Document Viewer SDK”, the minimal one), allow developers -through the optional JBIG2 Encoder plugin – to quickly and easily add to their apps JBIG2 related features such as read, write, view JBIG2 files or PDF files embedding JBIG2 encoded bitmap.
The GdPicture.NET Ultimate SDK Edition license unlocks all features and plugins, including the JBIG2 Encoder plugin.



The Big Browser on March 09

Using C# like a scripting language. Read article Technical Debt - How much is it really costing you ? Read article 11 Google job titles you won't believe actually exist Read article The literal laptop: jeans having built-in keyboard, mouse and speakers Read article 8 Qualities of Remarkable Employees Read Article

Casual Friday on March 09

Unstoppable passion for cubism

Unstoppable passion for cubism