Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is better BMP or JPG?
Message
From
20/03/2009 17:58:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01390071
Message ID:
01390181
Views:
68
>>>>Hi,
>>>>
>>>>I need to include in a report (purchase order) a picture of the manager's signature. What should work better in a VFP report for this purpose: BMP or JPG file?
>>>
>>>BMP is good only if you are selling disks and memory. Specially for a signature, which should have very few colors and should compress fine.
>>>
>>>JPG is the oldest good algorithm for compressing images; I think it's internally used in DVDs, each frame being a jpg - or at least it is used in several codecs. The trouble is that it's proprietary (by, imagine, JPEG group :) and the owners may want to slap a charge on software that uses it, some time in the future. I think CompuServe tried something like that with its .gif format, but don't know how far did it get. The PNG format is, AFAIK, a freebie, open source thing and any browser takes it; IMO, the best format for screenshots, which look right and are still small even with minimal compression. For photographs, scans with more than just text (i.e. texture, multiple colors), JPG serves still the best.
>>
>>Thank you, Dragan.
>
>I develop software for courier drivers handhelds - the signature is captured and we zip it and transmit it - I believe that bmp files produce a better image with jpg files the smaller size - take your pick

Actually, it's a matter of degree of compression with jpgs. I keep mine at about 85% quality (whatever that means :) and I can't see any visible difference between a compressed and noncompressed, and the ratio is about 2.5:1 for photographs with lots of detail, up to 8:1 for screenshots or rougher scans or photos with lots of uniform surfaces (sky, water). The effect around the edges of contrasting surfaces (i.e. text) is minimal to nearly absent at this percentage. Of course, you can drive the quality much lower (i.e. 10%) and achieve better compression. It's a tradeoff and I'm taking those 85% as my bargain price.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform