Breaking out large images from group 4 fax TIFF
Posted: 2009-08-17T17:48:38-07:00
Hi,
I have a set of large TIFF images. They are typically less than 10Mb in size, but are encoded in group 4 fax format.
Once I have them saved us unencoded, uncompressed tif files, I can load them with GIMP and manipulate them prior to plotting them on a wide format plotter.
With these group 4 fax encoded images smaller than ~3Mb, I have successfully used "convert" to produce new manageable images. Above that size, the convert process consumes all of the available memory (~8Gb) and starts using the swap drive, and effectively stalls.
As an example, there is one image that is being particularly resilient to my efforts. The identify command returns "TIFF 4677x385208 4677x385208+0+0 1-bit Bilevel DirectClass 9.526mb 55.480u 4:19"
Thats not a misprint. It is a scanned log from a petroleum well. 11.7" wide by 963" long. In this case, there are two main logs, and two repeated sections, joined one after another. Once I have the image in GIMP, I crop each of these sections into seperate images for further processing, vectorisation or plotting.
Can anybody suggest some commands I can use to rewrite this image to a friendlier format (such as uncompressed tif)?
I am using Ubuntu64 (Release 9.04), 4 x 2.4GHz, 7.7Gb RAM.
Thankyou.
I have a set of large TIFF images. They are typically less than 10Mb in size, but are encoded in group 4 fax format.
Once I have them saved us unencoded, uncompressed tif files, I can load them with GIMP and manipulate them prior to plotting them on a wide format plotter.
With these group 4 fax encoded images smaller than ~3Mb, I have successfully used "convert" to produce new manageable images. Above that size, the convert process consumes all of the available memory (~8Gb) and starts using the swap drive, and effectively stalls.
As an example, there is one image that is being particularly resilient to my efforts. The identify command returns "TIFF 4677x385208 4677x385208+0+0 1-bit Bilevel DirectClass 9.526mb 55.480u 4:19"
Thats not a misprint. It is a scanned log from a petroleum well. 11.7" wide by 963" long. In this case, there are two main logs, and two repeated sections, joined one after another. Once I have the image in GIMP, I crop each of these sections into seperate images for further processing, vectorisation or plotting.
Can anybody suggest some commands I can use to rewrite this image to a friendlier format (such as uncompressed tif)?
I am using Ubuntu64 (Release 9.04), 4 x 2.4GHz, 7.7Gb RAM.
Thankyou.