Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Image decompression algorithm

Posted on 2009-05-11
13
Medium Priority
?
911 Views
Last Modified: 2013-12-18
Hi All
  i want to know about the image decompression algorithm used in lotus notes to  decompress bitmap images.

Thanks in Advance
0
Comment
Question by:davinder101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
  • 3
13 Comments
 
LVL 22

Expert Comment

by:mbonaci
ID: 24353591
What do you want to do? Specify details...
0
 
LVL 22

Expert Comment

by:mbonaci
ID: 24353601
I ask because bitmap images are not compressed.
0
 
LVL 46

Expert Comment

by:aikimark
ID: 24355819
@davinder101

Do you mean compress when you write decompress?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:davinder101
ID: 24361209
I am developing a application in c++ to extract images from lotus notes .
in lotus notes jpeg and wmf files are not compressed but bitmaps are compressed.
0
 
LVL 22

Expert Comment

by:mbonaci
ID: 24362509
Maybe this can help you (download attachment at the bottom of the page - I don't have access):
http://www.eview.com/eview/VOLR6.nsf/0/60E10C63F2E130328525738B00709D51

And this (this is how to add inline image to RTF - not attachment, see if you can do it other way around):
http://www.eview.com/eview/volr6.nsf/2a8bf6b62c61b60585256f2500684630/70c45a215c02c48185257091005aae79?OpenDocument

Hope this helps,
Mb¤
0
 
LVL 46

Expert Comment

by:aikimark
ID: 24363068
Lotus Notes has an API that gives you access to most of the items (views, documents, etc.).  Don't worry about decompressing the image, since the API should present your program with a regular bitmap.

On systems where Notes is installed, you will find at least one ActiveX object that wraps the Notes APIs.  This will likely be the easiest solution path for you to code.
0
 
LVL 22

Expert Comment

by:mbonaci
ID: 24364659
Yes, but Lotus Notes doesn't have rich text field inline image manipulation implemented, so, IMHO your only option is to try to utilize examples I posted...
0
 

Author Comment

by:davinder101
ID: 24373756
but i need information about the decompression Algorithm
0
 
LVL 46

Expert Comment

by:aikimark
ID: 24376228
Are you sure these are compressed bitmap images and not some other format?

I've been doing some searching on the RTF format, since my prior RTF work did not include embedded images.  I might have found some of the different compression methods on the Microsoft site.  see snippet

If you can't use a Notes Document object to present you with the image, I recommend that you consider using an image library or RTF rendering object to  do this image manipulation.

If you insist on coding this yourself and know that these are compressed bitmap images, you are probably looking at RLE4 or RLE8 compression schemes.  One of the big reasons why bitmap files typically compress so well is that they contain identically colored pixels in adjacent positions.  Lempel-Zev-Huffman algorithm renders these 'runs' into much smaller representations, much the same as RLE (Run Length Encoding)



RLE4 compression
RLE8 compression
Group 3 compression
Group 4 compression
JPEG compression.
JBIG compression.
JPEG 2000 compression.
PNG compression.

Open in new window

0
 

Author Comment

by:davinder101
ID: 24381708
I am using NotesPeek, a utility that allows navigation and display of the complete contents of Lotus Notes database files. It breaks out the database components in a tree structure.

plz find the attached snap of notespeek which gives information about the compressed bitmap image.

Thanks
New-Picture.bmp
0
 
LVL 46

Expert Comment

by:aikimark
ID: 24383188
clearly, this is a WMF encoding.  WMF employs RLE.

"...NotesPeek shows a Windows Metafile Segment and the caption text is in there. In the C API, this is a CDWINMETASEG record."
From:
http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/39cd664bbb96e2be80256dea00614ec2?OpenDocument

=========
As I've mentioned, there are many libraries/products that support image processing, including conversions between various graphical formats.  A short list is GDI+, PaintLib, CxImage, LibTiff, LibJpeg, LibPng (and others).

=========
Here is a link to the MSDN knowledgebase topic that includes C++ programming examples:
http://msdn.microsoft.com/en-us/library/system.drawing.imaging.metafile(VS.71).aspx

0
 
LVL 22

Accepted Solution

by:
mbonaci earned 750 total points
ID: 24385608
0
 
LVL 22

Expert Comment

by:mbonaci
ID: 24735873
Is this resolved?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Nadia
Linear search (searching each index in an array one by one) works almost everywhere but it is not optimal in many cases. Let's assume, we have a book which has 42949672960 pages. We also have a table of contents. Now we want to read the content on p…
Prime numbers are natural numbers greater than 1 that have only two divisors (the number itself and 1). By “divisible” we mean dividend % divisor = 0 (% indicates MODULAR. It gives the reminder of a division operation). We’ll follow multiple approac…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question