Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Size problem in saved tif image
#1
Hi all,
I face a problem in saving a tif image.
What I'm doing :
I'm editing a 3600x3600 16bits integer grayscale geotiff with 1 layer.
When I save it and reopen it with the Gimp 2.10, the image is 3602X3600 px and the layer have a 2px left offset.
Despite of numerous attempts to correct size and layer position, when I save it the same thing append.
Am I missing something obvious here ?
thanks for reading
Reply
#2
What are the export options?
Reply
#3
(06-11-2024, 08:27 PM)Ofnuts Wrote: What are the export options?

Hi,
I join a snapshot of export options ... (I used default options)
I also join a zip with the image. (My Gimp version is 2.10.34)


Attached Files Image(s)
   

.zip   N042E012_AVE_DSM.zip (Size: 36.28 KB / Downloads: 181)
Reply
#4
(06-11-2024, 09:04 PM)MarcoCarta Wrote:
(06-11-2024, 08:27 PM)Ofnuts Wrote: What are the export options?

Hi,
I join a snapshot of export options ... (I used default options)
I also join a zip with the image. (My Gimp version is 2.10.34)

Downloaded, installed and tried Gimp 2.99 -> Image is saved correctly with Gimp 2.99.
Reply
#5
Can I have the original image to try to reproduce the problem?
Reply
#6
Might come from the original file or might be a bug with Gimp 2.10.34 Using ImageMagick there is a 2 pix offset, apparently in the page geometry (whatever that is) lots of TIFF warnings. Post the original for Ofnuts.


Quote:N042E012_AVE_DSM.tif TIFF 3600x3600 3600x3600+2+0 16-bit Grayscale Gray 24.7255MiB 0.010u 0:00.020N042E012_AVE_DSM.tif TIFF 3600x3600 3600x3600+2+0 16-bit Grayscale Gray 24.7255MiB 0.000u 0:00.019
identify: Unknown field with tag 33550 (0x830e) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/958.
------repeated 9 times-------
.......................

  Filename: N042E012_AVE_DSM.tif
  Permissions: rw-rw-r--
  Format: TIFF (Tagged Image File Format)
  Mime type: image/tiff
  Class: DirectClass
  Geometry: 3600x3600+0+0
  Resolution: 72x72
..........snip.........
  Compose: Over
  Page geometry: 3600x3600+2+0
  Origin geometry: +2+0
........................
  icc:manufacturer: GIMP
    icc:model: D65 Grayscale with sRGB TRC
........................
    tiff software: GIMP 2.10.34
    tiff timestamp: 2024:06:11 21:29:58
    
Using Gimp 2.10.38 (kubuntu 20.04) Image -> Crop to content to get rid if the 2 pix left side transparent margin and Export with your settings. That fixes the offset here, still have the tag warnings.  Strangely the file size is slightly larger 25926520 <> 25926750.

Try updating your version of Gimp.
Reply
#7
(06-12-2024, 07:41 AM)rich2005 Wrote: Might come from the original file or might be a bug with Gimp 2.10.34 Using ImageMagick there is a 2 pix offset, apparently in the page geometry (whatever that is) lots of TIFF warnings.  Post the original for Ofnuts.


Quote:N042E012_AVE_DSM.tif TIFF 3600x3600 3600x3600+2+0 16-bit Grayscale Gray 24.7255MiB 0.010u 0:00.020N042E012_AVE_DSM.tif TIFF 3600x3600 3600x3600+2+0 16-bit Grayscale Gray 24.7255MiB 0.000u 0:00.019
identify: Unknown field with tag 33550 (0x830e) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/958.
------repeated 9 times-------
.......................

  Filename: N042E012_AVE_DSM.tif
  Permissions: rw-rw-r--
  Format: TIFF (Tagged Image File Format)
  Mime type: image/tiff
  Class: DirectClass
  Geometry: 3600x3600+0+0
  Resolution: 72x72
..........snip.........
  Compose: Over
  Page geometry: 3600x3600+2+0
  Origin geometry: +2+0
........................
  icc:manufacturer: GIMP
    icc:model: D65 Grayscale with sRGB TRC
........................
    tiff software: GIMP 2.10.34
    tiff timestamp: 2024:06:11 21:29:58
    
Using Gimp 2.10.38 (kubuntu 20.04) Image -> Crop to content to get rid if the 2 pix left side transparent margin and Export with your settings. That fixes the offset here, still have the tag warnings.  Strangely the file size is slightly larger 25926520 <> 25926750.

Try updating your version of Gimp.

Thanks a lot for your help !
It's very interesting to see how the result change between 2.10.34 and 2.10.38 ...
At the end I've installed Gimp 2.99 beta and now working with the two versions.
Have a good good day.
Reply
#8
(06-12-2024, 07:14 AM)Ofnuts Wrote: Can I have the original image to try to reproduce the problem?

Thanks a lot for the time you dedicated.
In my previous response I had posted a zip with the image.
At the end I've installed Gimp 2.99 beta and now I'm working with the two versions.

Have a good good day.
Reply


Forum Jump: