After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 499157 - Alpha to Logo Scripts resize the image
Alpha to Logo Scripts resize the image
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Script-Fu
2.4.x
Other All
: Normal minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
: 594683 (view as bug list)
Depends on:
Blocks: 498480
 
 
Reported: 2007-11-23 11:41 UTC by Doug Beaton
Modified: 2018-05-24 12:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Doug Beaton 2007-11-23 11:41:10 UTC
Please describe the problem:
Two issues, really:

When text is modified using any of the Alpha to Logo functions, the function moves the text to the center of the image (this is the first issue -- don't think that this is supposed to happen), creates the proper layers, for example, a glow and background layer of the same size as the text layer for the "Alien Glow" function, and then crops all the other layers to the size of the text layer, regardless of whether they are above or below the text layer. One or two, such as the "3D Outline" function, deletes the background layer entirely.

Steps to reproduce:
1. Open any picture as an image.
2. Create a text layer above it.
3. Select the text layer and go to Filters->Alpha to Logo->Alien Glow (or any other filter on the Alpha to Logo list).
4. Accept defaults in the function box and press the "OK" button. 

Actual results:
Exactly as described in the problem box above.

Expected results:
I would have expected that the function be applied to the text layer wherever the text layer was rather than (as it is now) moving it to the center. The functions work with the appropriate background and modification layer(s) being applied directly under it, but I would not expect that all other layers would be cropped to the same size and place, or worse, deleted.

Does this happen every time?
Yes.

Other information:
I'm running a Windows x64 XP Pro dual P with 3G ram. I regard this as "Minor" because the workaround is obvious: Create a duplicate image, use the Alpha to Logo function in the duplicate, then drag the new layers over to the original image. They snap right into place in the center and can be easily linked and moved from there.
Comment 1 Michael Schumacher 2007-11-23 12:40:09 UTC
There is a related report, bug #498480. And IIRC we do have one for the cropping, too, but I can't find it.
Comment 2 Sven Neumann 2007-12-04 10:27:55 UTC
I guess this report should be merged with bug #498480 but I am leaving that up to Kevin.
Comment 3 Kevin Cozens 2007-12-04 19:24:53 UTC
Marked bug 498840 as dependant on this bug.
Comment 4 Michael Schumacher 2009-09-09 21:26:11 UTC
*** Bug 594683 has been marked as a duplicate of this bug. ***
Comment 5 Michael Natterer 2009-09-10 13:29:04 UTC
Is it really *cropping* the layers? To me it simply looks as if all
the scripts call a utility function that resizes the image but does
*nothing* to the layers.

Not that this behavior would be correct in any way...
Comment 6 Michael Schumacher 2009-09-11 08:31:24 UTC
Yes, the existing layers are kept intact, the canvas is resized.
Comment 7 Michael Natterer 2009-09-11 08:48:19 UTC
Changing summary accordingly.
Comment 8 LightningIsMyName 2010-02-12 19:25:59 UTC
Are we interested in resizing the image so the entire logo would be revelaed (see comment below)? Or do we prefer that the image won't be resized at all?

Most of the logo scripts use the script-fu-util-image-resize-from-layer function, which does the resizing which we don't want.
I implemented a function called script-fu-util-image-resize-to-include-layer, which resizes the image to include the layer, while making sure the canvas isn't being shrunk and that areas that were inside the canvas will remain inside even after the execution.
This function can be used in our case to do a proper image resizing if we wish to allow it.

The second option, in order to prevent complicating all the scripts that already work (by adding resize calculations), is to write a function called script-fu-util-image-resize-from-layer2 which will return a value that when given to the function script-fu-util-image-restore-size (which we will also write) will restore the canvas to it's original dimensions and position.

Which option sounds better?
We should remember that there are filters/scripts that resize the image (such as the tile filter) and that it may be right to allow the resizing.
Comment 9 GNOME Infrastructure Team 2018-05-24 12:16:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/257.