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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TImageEnView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

brucepolky

7 Posts

Posted - Oct 23 2011 :  02:06:08  Show Profile  Reply
Is it possible to take full control of the thumbnails within a JPG file? I would like to be able to set the size of the thumbnail stored within the JPG file to something like 300*300 pxels. It would also be helpful to save the file with no thunbnail.

fab

1310 Posts

Posted - Oct 24 2011 :  00:43:25  Show Profile  Reply
The jpeg (EXIF) thumbnail is stored in ImageEnView.IO.Params.EXIF_Bitmap, so you can resize or remove it just before saving.
For example, if you want a 300x### (not 300x300 to avoid wrong stretching) just execute:
ImageEnView1.IO.LoadFromFile('input.jpg');
ImageEnView1.Proc.ResampleTo(ImageEnView1.IO.Params.EXIF_Bitmap, 300, -1, rfTriangle);
imageenview1.IO.SaveToFile('output.jpg');

To remove EXIF thumbnail:
ImageEnView1.IO.LoadFromFile('input.jpg');
ImageEnView1.IO.Params.EXIF_Bitmap.Free;
ImageEnView1.IO.Params.EXIF_Bitmap := nil;
imageenview1.IO.SaveToFile('output.jpg');
Go to Top of Page

brucepolky

7 Posts

Posted - Oct 28 2011 :  06:21:30  Show Profile  Reply
Thanks Fabrizio
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: