ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Jpeg wrong file size

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
giancarlo Posted - May 14 2013 : 02:57:35
I scan an image with imageenview and save it to a jpg file with 90 quality... i get about 1200kb
I scan the SAME image with other programs (faststone,irfanview,photoshop cs5) and saved with 90 jpg quality and i get from 300kb to 400kb
i all saved in 24bit depth and with the same resolution and dpi.
why so much file size difference?
also tried with/without "progressive" but the file size change few kb.

thank you
4   L A T E S T    R E P L I E S    (Newest First)
giancarlo Posted - May 14 2013 : 09:51:54
yes, now the files are smaller.

thank you so much :)
fab Posted - May 14 2013 : 09:22:51
You encoded ImageEn jpegs as RGB, while they should be YCbCr (as other programs do).
Try this:

ImageEnView1.IO.Params.JPEG_ColorSpace := ioJPEG_YCbCr;
ImageEnView1.IO.Params.JPEG_Quality := 90;
ImageEnView1.IO.SaveToFile('out.jpg');
giancarlo Posted - May 14 2013 : 08:35:22
sure.
here the first pack of scans:

./attach/giancarlo/201351482857_scan_size_test_a.zip

the second pack

./attach/giancarlo/201351483133_scan_size_test_b.zip

i just notice that some program apply an automatic soft correction (contrast or brightness) before saving.
to avoid resize or resample differences, i've scanned the whole bed scanner space

thank you
fab Posted - May 14 2013 : 06:59:42
Please could you post both (ImageEn and other program) resulting jpegs?