RSS/Atom feed Twitter
Site is read-only, email is disabled

Mystery: scaling "thin" areas makes them partially transparent

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

Mystery: scaling "thin" areas makes them partially transparent Ofnuts 09 Oct 16:14
  Mystery: scaling "thin" areas makes them partially transparent Elle Stone 09 Oct 16:26
   Mystery: scaling "thin" areas makes them partially transparent Nicolas Robidoux 09 Oct 16:59
    Mystery: scaling "thin" areas makes them partially transparent Ofnuts 09 Oct 17:45
     Mystery: scaling "thin" areas makes them partially transparent Teo Mazars 09 Oct 20:25
Ofnuts
2013-10-09 16:14:17 UTC (about 11 years ago)

Mystery: scaling "thin" areas makes them partially transparent

I have a layer filled with black 100% opaque.

If I select a 3px wide strip only shrink the long side, the final result is not 100% opaque: I get a one-pixel high black line at 100% opacity with a black line at 87% opacity on each side. And is the selected strip is only 1px high, the resulting line is 74% opaque. If thereis no alpha channel I get gray instead.

This seems interpolation related since using "None" doesn't produce this result.

Is there an explanation to this? And can it be avoided?

Elle Stone
2013-10-09 16:26:11 UTC (about 11 years ago)

Mystery: scaling "thin" areas makes them partially transparent

Hmm, I was going to report the same observation. A few days ago I upscaled a 768px wide gradient times 1600, but just horizontally, keeping the vertical dimension the same. There were several pixels at either side of the gradient (but not at the top and bottom edges) that were clear. Are you sure "none" also doesn't have the same issue? When I removed the alpha channel, I got white.

On 10/9/13, Ofnuts wrote:

I have a layer filled with black 100% opaque.

If I select a 3px wide strip only shrink the long side, the final result is not 100% opaque: I get a one-pixel high black line at 100% opacity with a black line at 87% opacity on each side. And is the selected strip is only 1px high, the resulting line is 74% opaque. If thereis no alpha channel I get gray instead.

This seems interpolation related since using "None" doesn't produce this result.

Is there an explanation to this? And can it be avoided? _______________________________________________ gimp-developer-list mailing list
List address: gimp-developer-list@gnome.org List membership:
https://mail.gnome.org/mailman/listinfo/gimp-developer-list

Elle Stone
http://ninedegreesbelow.com

Just because it's a standard, doesn't mean it's right.
Nicolas Robidoux
2013-10-09 16:59:02 UTC (about 11 years ago)

Mystery: scaling "thin" areas makes them partially transparent

This is how to fix this

Enhance GIMP and GEGL so that the Image Scale and Layer Scale operations use the CLAMP (nearest neighbour) abyss policy and the tools that use samplers use the NONE (fade to transparency) abyss policy. This will remove the border artifacts from the former operations without introducing radiating extensions to the latter.

Note: Enlarging or shrinking abnormally small images is not part of the target use case. I also am not 100% sure that the above recommendation is consistent with the target use case.

Also note that I committed to fix this a bit less than a year ago and that a lot of "life" happened in the meantime.

Ofnuts
2013-10-09 17:45:46 UTC (about 11 years ago)

Mystery: scaling "thin" areas makes them partially transparent

On 10/09/2013 06:59 PM, Nicolas Robidoux wrote:

Note: Enlarging or shrinking abnormally small images is not part of the target use case. I also am not 100% sure that the above recommendation is consistent with the target use case.

Actually I found this while working on a script that does a non-affine transform by scaling successive lines of the image.

Teo Mazars
2013-10-09 20:25:24 UTC (about 11 years ago)

Mystery: scaling "thin" areas makes them partially transparent

There is a bug open about that : https://bugzilla.gnome.org/show_bug.cgi?id=696090

Completly forgot that one...

----- Mail original -----

De: "Ofnuts" À: "Nicolas Robidoux" , "Elle Stone" Cc: gimp-developer-list@gnome.org
Envoyé: Mercredi 9 Octobre 2013 19:45:46 Objet: Re: [Gimp-developer] Mystery: scaling "thin" areas makes them partially transparent

On 10/09/2013 06:59 PM, Nicolas Robidoux wrote:

Note: Enlarging or shrinking abnormally small images is not part of the target use case. I also am not 100% sure that the above recommendation is consistent with the target use case.

Actually I found this while working on a script that does a non-affine transform by scaling successive lines of the image.

_______________________________________________ gimp-developer-list mailing list
List address: gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list