It is currently Tue Jun 23, 2026 12:46 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Image details blur with resizing of image
PostPosted: Fri Apr 20, 2012 6:12 pm  (#1) 
Offline
GimpChat Member

Joined: Feb 06, 2011
Posts: 342
GIMP Version: 2.6.11
Operating System: Windows
OS Version: XP - SP3
GIMP Experience: Intermediate Level



Hi everyone,

I hope everyone's spring is going great. So on to my question. I was working on a project and I usually work with larger image than I need to for details. I noticed that when I reduced my image size by about 50% my details are becoming blurry. I have not had this issue before and kind of at my wits end trying to figure out what is wrong in gimp or my pc that might be causing this. Does anyone have any ideas? Thanks in advance. :)

Liana

Edit: I forgot to add. I work in layers and save as a xcf file. I can understand losing details in a jpg file but losing them in the xcf files puzzles me.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Image details blur with resizing of image
PostPosted: Mon May 14, 2012 3:28 pm  (#2) 
Offline
GimpChat Member

Joined: Dec 07, 2011
Posts: 102
Someone else may be able to provide a more thorough answer, but whenever you shrink or expand an image, you will lose some detail even if it's not a .jpg file. The only type of file (to my knowledge) that can be grown/shrunk with no loss of detail is a vector file. GIMP is raster-based, so images are subject to detail loss if grown or shrunk.


Top
 Post subject: Re: Image details blur with resizing of image
PostPosted: Mon May 14, 2012 4:19 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7388
Location: Göteborg at last!
I can only echo what lacertile said and this very effect is used by a lot of fractal software for antialiasing.


Top
 Post subject: Re: Image details blur with resizing of image
PostPosted: Mon May 14, 2012 4:41 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Hopefully ofnuts will be along later to point you to the theory that shows why re-sizing will always cause this, and the maths behind pre-blurring your image before downsizing, but while you're waiting I'll point you to the last time I answered this question: http://www.flickr.com/groups/gimpusers/ ... 9774118473 (to summarise, I do downsizing in multiple steps)

Request to ofnuts. Can you write up a post that explains this process so that someone can make it sticky here or on another forum, because this question keeps coming up.

Kevin


Top
 Post subject: Re: Image details blur with resizing of image
PostPosted: Mon May 14, 2012 4:44 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Lianam wrote:
GIMP Version: 2.6.11
Operating System: Windows
OS Version: XP - SP3
GIMP Experience: Intermediate Level



Hi everyone,

I hope everyone's spring is going great. So on to my question. I was working on a project and I usually work with larger image than I need to for details. I noticed that when I reduced my image size by about 50% my details are becoming blurry. I have not had this issue before and kind of at my wits end trying to figure out what is wrong in gimp or my pc that might be causing this. Does anyone have any ideas? Thanks in advance. :)

Liana

Edit: I forgot to add. I work in layers and save as a xcf file. I can understand losing details in a jpg file but losing them in the xcf files puzzles me.

By reducing your picture to 50% you keep only one quarter of the pixels so you lose detail.

If your details are a regular pattern which is close to 2px, you can get hit by "spatial frequency folding". The non-obvious (but mathematically sound) cure is to pre-blur the picture befire scaling it down, by applying a corresponding Gaussian blur (reduce to 50%: apply 2px blur, 33%: 3px, etc...).

In all cases you can recover some sharpness using the "sharpening" filters (Filters/Enhance...)(one of the most efficient, despite its name, is "unsharp mask"), but this sharpening must be the last thing you do to the picture.

_________________
Image


Top
 Post subject: Re: Image details blur with resizing of image
PostPosted: Tue May 15, 2012 5:04 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2011
Posts: 180
ofnuts wrote:
By reducing your picture to 50% you keep only one quarter of the pixels so you lose detail.

If your details are a regular pattern which is close to 2px, you can get hit by "spatial frequency folding". The non-obvious (but mathematically sound) cure is to pre-blur the picture befire scaling it down, by applying a corresponding Gaussian blur (reduce to 50%: apply 2px blur, 33%: 3px, etc...).

In all cases you can recover some sharpness using the "sharpening" filters (Filters/Enhance...)(one of the most efficient, despite its name, is "unsharp mask"), but this sharpening must be the last thing you do to the picture.


===============================================================================================

Thankyou for that info ofnuts!
Request a script-fu that can perform those steps automatically with one click please ! I do a lot of resizing. Please and thankyou!


Top
 Post subject: Re: Image details blur with resizing of image
PostPosted: Sat Jun 09, 2012 10:47 am  (#7) 
Offline
GimpChat Member

Joined: Jun 08, 2012
Posts: 32
What interpolation are you using? I found that Sinc (Lanczos3) did text better. I don't know the whys and the hows though, I fiddled with the settings and that worked the best.


Top
 Post subject: Re: Image details blur with resizing of image
PostPosted: Sat Jun 09, 2012 2:14 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
Try both Cubic and Lanczos3. The type of image is the difference on which one works best. Reduce the image size in steps using the aspect ratio as a guide.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Image details blur with resizing of image
PostPosted: Sat Jun 09, 2012 2:42 pm  (#9) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16042
There is already a script that will re size in steps. In fact there are 3.
http://registry.gimp.org/node/9676
http://registry.gimp.org/node/26196

And i have one custom made that keeps the layers.

_________________
Image


Top
 Post subject: Re: Image details blur with resizing of image
PostPosted: Sat Jun 09, 2012 3:16 pm  (#10) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Rod wrote:
There is already a script that will re size in steps. In fact there are 3.
http://registry.gimp.org/node/9676
http://registry.gimp.org/node/26196

And i have one custom made that keeps the layers.

The stepped technique works because the successive interpolations also blur the image... But that makes too many interpolations...

_________________
Image


Top
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group