Ability to select image layer scaling method

Here everybody can post his problems with PhotoLine
Benutzeravatar
ono
Mitglied
Beiträge: 148
Registriert: Mi 21 Jul 2010 23:50
Wohnort: Baden, Switzerland

Ability to select image layer scaling method

Beitrag von ono »

Currently when I scale down image layer it seems to use nearest neighbor to display the result, also the look differs relatively if Pixel Model is on or off.

Here is the experiment, with the following 256x256 image:
ScaleDownSource.png
Scaling it down to 64x64 I get following result with Pixel Mode on:
ScaleDownPixelModeOn.png
However when I fix the layer I get:
ScaleDownFixedLayer.png
Any reason of such behavior Is there any way to control the method layer gets scaled (both for preview and Fix Layer) ?

This is pretty annoying because unless I ensure all bitmap layers are Fixed, I get different output that what I see.
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Adam Strzelecki | nanoant.com | CBCT/PET tomography engineer
Benutzeravatar
Herbert123
Mitglied
Beiträge: 2452
Registriert: Sa 12 Mai 2012 21:38

Re: Ability to select image layer scaling method

Beitrag von Herbert123 »

Yes, I totally agree - I have also asked about this: when we fix a layer currently Lanczos is applied, but that is the worst one for that type of imagery. When we fix a layer, we should get an option to choose the sampling method.

Currently I workaround this by only using the layer resize option in the menu. It means I scale the layer down visually, take note of the dimensions, then undo the scaling, and use the menu option which does include a choice of downsample algorithms (at least, in the newer beta versions).

For scaling down and up layers there should be some sort of option to control the sampling algorithm. And then there's the lack of an overall pixel alignment option for all layers...
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
Martin Huber
Entwickler
Entwickler
Beiträge: 4298
Registriert: Di 19 Nov 2002 15:49

Re: Ability to select image layer scaling method

Beitrag von Martin Huber »

ono hat geschrieben:Any reason of such behavior
High-quality scaling is too slow for dynamic on-screen rendering.
ono hat geschrieben:Is there any way to control the method layer gets scaled (both for preview and Fix Layer) ?
Currently not.
ono hat geschrieben:This is pretty annoying because unless I ensure all bitmap layers are Fixed, I get different output that what I see.
I don't recommend fixing the image layers, because you will lose information. If you want to resize the image layer later, you may need that information.

Martin
Benutzeravatar
ono
Mitglied
Beiträge: 148
Registriert: Mi 21 Jul 2010 23:50
Wohnort: Baden, Switzerland

Re: Ability to select image layer scaling method

Beitrag von ono »

Martin Huber hat geschrieben:
ono hat geschrieben:Any reason of such behavior
High-quality scaling is too slow for dynamic on-screen rendering.
Understood.
Martin Huber hat geschrieben:
ono hat geschrieben:Is there any way to control the method layer gets scaled (both for preview and Fix Layer) ?
Currently not.
Okay, the problem here however is that Lanczos sampling sometimes gives worse results (more blur) than Bilinear when downsampling. Would be nice if one can control the sampling of the particular layer, currently I can only switch Nearest Neighbor (no antialiasing)/ Lanczos. Or at least to have some global setting:
  • Preview sampling method: [ Bilinear V] (by default, but why not let someone choose something else if one has decent CPU)
  • Output sampling method: [ Lanczos V] (by default)
Martin Huber hat geschrieben:
ono hat geschrieben:This is pretty annoying because unless I ensure all bitmap layers are Fixed, I get different output that what I see.
I don't recommend fixing the image layers, because you will lose information. If you want to resize the image layer later, you may need that information.
That's why inability to control way the layers are downsampled makes it even worse.
Adam Strzelecki | nanoant.com | CBCT/PET tomography engineer