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
 TImageEnView

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
brucepolky Posted - Oct 23 2011 : 02:06:08
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.
2   L A T E S T    R E P L I E S    (Newest First)
brucepolky Posted - Oct 28 2011 : 06:21:30
Thanks Fabrizio
fab Posted - Oct 24 2011 : 00:43:25
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');