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
 Issue with TIEBitmap.IO.SaveToFile
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

1006 Posts

Posted - Oct 14 2025 :  10:57:48  Show Profile  Reply
I am downloading multiple FavIcons from the Google FavIcon helper service:

FIEBitmap.IO.LoadFromStream(MemStream);   // original image size from MemStream is 16x16 or 32x32
FIEBitmap.Resample(100, 100, rfLanczos3);
FIEBitmap.IO.SaveToFile(ThisOutputPath);


1. When saving to .ICO format, the 100x100 size does not work: The file instead has the native image size
How to save to a specifif ICO size?

2. When saving to .PNG format, the 100x100 size is correct, but the image results are blurred despite rfLanczos3


xequte

39222 Posts

Posted - Oct 14 2025 :  19:43:58  Show Profile  Reply
Hi Peter

1. Make sure you set the size parameters. See the examples at:

https://www.imageen.com/help/TImageEnIO.SaveToFileICO.html


2. 32x32 -> 100x100 = 1K pixels -> 10K pixels, in other words it has to generate 90% new pixels, so blurriness is inevitable (excluding some use of AI).



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

PeterPanino

1006 Posts

Posted - Oct 15 2025 :  02:38:16  Show Profile  Reply
Thank you, Nigel.

As you mention AI, wouldn't it be nice to have some sort of local (i.e., non-cloud-based) AI scaling?
Go to Top of Page

xequte

39222 Posts

Posted - Oct 15 2025 :  15:13:15  Show Profile  Reply
Hi Peter

Please see:

http://www.imageen.com/help/TIEVisionNNetSuperRes.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: