Commit fef631cc authored by Mukund Sivaraman's avatar Mukund Sivaraman Committed by Mukund Sivaraman

disabled the layer offsets saving code. This can be re-enabled in 2.6,

2007-04-26  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-save.c: disabled the layer offsets saving
        code. This can be re-enabled in 2.6, when the load plug-in is
        patched to support these saved offsets.

        * plug-ins/common/tiff-load.c: marked the code for the above
        with a TODO comment.


svn path=/trunk/; revision=22344
parent 7af57828
2007-04-26 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/tiff-save.c: disabled the layer offsets saving
code. This can be re-enabled in 2.6, when the load plug-in is
patched to support these saved offsets.
* plug-ins/common/tiff-load.c: marked the code for the above
with a TODO comment.
2007-04-26 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/tiff-save.c: save the layer offsets too, to
......@@ -991,6 +991,12 @@ load_image (const gchar *filename,
g_free (channel);
channel = NULL;
/* TODO: in GIMP 2.6, use a dialog to selectively enable the
* following code, as the save plug-in will then save layer offests
* as well.
*/
/* compute bounding box of all layers read so far */
if (min_col > layer_offset_x_pixel)
min_col = layer_offset_x_pixel;
......
......@@ -634,7 +634,6 @@ save_image (const gchar *filename,
gushort save_unit = RESUNIT_INCH;
GimpUnit unit;
gfloat factor;
gint offset_x, offset_y;
gimp_image_get_resolution (orig_image, &xresolution, &yresolution);
unit = gimp_image_get_unit (orig_image);
......@@ -659,10 +658,18 @@ save_image (const gchar *filename,
TIFFSetField (tif, TIFFTAG_RESOLUTIONUNIT, save_unit);
}
/* TODO: enable in 2.6
gint offset_x, offset_y;
gimp_drawable_offsets (layer, &offset_x, &offset_y);
TIFFSetField (tif, TIFFTAG_XPOSITION, offset_x / xresolution);
TIFFSetField (tif, TIFFTAG_YPOSITION, offset_y / yresolution);
if (offset_x || offset_y)
{
TIFFSetField (tif, TIFFTAG_XPOSITION, offset_x / xresolution);
TIFFSetField (tif, TIFFTAG_YPOSITION, offset_y / yresolution);
}
*/
}
/* The TIFF spec explicitely says ASCII for the image description. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment