GNOME Bugzilla – Bug 56792
Saving JPG's Problem with Layer and Image sizes.
Last modified: 2001-06-28 08:36:30 UTC
Here is the issue. When a JPEG is Saved, a preview box appiers, the preview appiers fine if the layer being saved is is the same size as the image size, however when the gimp creates the "Jpeg Preview" Layer (Visible in the Layers Palett) It does some funny stuff with the layer - If the layer is offset to the image the "jpeg preview layer" will make the layer so the top righthand corner of the layer matches the top righthand corner of the image. Therefor moving the layer from where it should be. The JPEG is saves the whole layer, regardless of the image size. I Think this could be fixed by Flattening the visible layers and then running a layer to image size - To create the jpeg preview and the layer to save as a jpeg.
Well, there's a conceptual problem here: What to do when an image with multiple layers is saved and the file format does not support layers? What Gimp does is, it saves the current layer only totally ignoring offsets and image size. Since this behaviour is not predictable from the UI, this can actually considered a bug. We will however not fix it in the Gimp-1.2 branch. I'm not sure if there is anything new in this bug-report. Otherwise it should be marked a duplicate of bug #51114.
This is an old bug that has plagued the Gimp since version 0.99.x. The file_save plug-ins ignore the layer offset and opacity, as well as the canvas size if it is different from the layer size. There is a detailled description of the problem in bug #51114. As a side effect of this bug, you will also notice that the thumbnails (.xvpics) do not match the contents of the saved file. This is described in bug #25272. As you mentioned (and as suggested in bug #51114), the best solution to this problem would be to trigger the Export feature in order to make sure that the saved file contains only what the user expects. I do not think that the bug will be fixed in 1.2.2 because that would require some changes in all file_save plug-ins and in the Gimp itself (to trigger the Export feature). But maybe in 1.2.3 (nice number!) or in 1.4... *** This bug has been marked as a duplicate of 51114 ***
Funny... There was a mid-air collision between Sven's comments and mine. Fortunately, the result in this bug report looks correct.