Questions tagged [tiff]

TIFF (originally standing for Tagged Image File Format) is a file format for storing images.

Tagged Image File Format (abbreviated TIFF) is a file format for storing raster images, popular among Apple Macintosh owners, graphic artists, the publishing industry, and both amateur and professional photographers in general. As of 2009, it is under the control of Adobe Systems.

Originally created by the company Aldus for use with what was then called "desktop publishing", the TIFF format is widely supported by image-manipulation applications, by publishing and page layout applications, by scanning, faxing, word processing, optical character recognition and other applications. Adobe Systems, which acquired Aldus, now holds the copyright to the TIFF specification. TIFF has not had a major update since 1992.

Resources

2367 questions
0
votes
0 answers

PIL - "UNRECOGNIZED IMAGE MODE" when copy TiffImageFile

I load a TIFF file with PIL and iterate on each page with enumerate(ImageSequence.Iterator(img)). Then I have my page as TiffImageFile and try to copy to apply treatments on it. But when I try to copy it, I have the error "unrecognized image mode".…
0
votes
1 answer

Edit TIFF image without changing header data

I have a program that takes in stacks of TIFF images and is very particular about the header data (it expects all headers to be the same), however I want to edit a couple of the images in the stack before sending it to this program. Every program…
Nick Udell
  • 2,420
  • 5
  • 44
  • 83
0
votes
0 answers

How to tile very large image files

I have got a large TIFF file (~160000x50000 px @ 3,5 GB) and I need to extract PNG tiles of 256x256 px out of it in order to overlay it on a map. I tried ImageMagick with magick stream -extract 256x256+xOffset+yOffset source.tif tileXXX.png but…
DPF
  • 270
  • 1
  • 2
  • 12
0
votes
1 answer

Can anyone tell how to georeference a tiff image when the coordinates are given in a json file?

I want to do crop classification using deep learning methods. I have collected the dataset of crop types in Ghana. My dataset contains tiff images and json files. The tiff file is not georeferenced. The json file looks like…
Rameen Rahman
  • 11
  • 1
  • 2
  • 4
0
votes
0 answers

Write tiff 6.0 in strips after output from imagemagick or libtiff

I'm adjusting some brightness/contrast of tiff 6.0 images with bytes arranged in strips using imagemagick. The outputs are tiff 5.0 images with bytes in strips. I tried to force the output to tiff 6.0 format by tiffcp -t however the bytes are…
0
votes
1 answer

Change pixel order of a .tiff file from rgbrgb to rrbbgg (interleaved to non-interleaved)

I have been trying to figure out a way to create non-interleaved .tiff files, as described here: https://questionsomething.wordpress.com/2012/07/26/databending-using-audacity-effects/ (under the heading of "The photographic base"). It seems like…
0
votes
2 answers

Python PIL unexpected quit of process when cropping

I am working on a short script which should slice a tiff file in smaller pieces. The files are bigger as typical (the biggest file has 16000 x 28800 pixels 1 bit depth) My idea is, to crop each of this rectangles and save this as a new file, with…
TimoBickert
  • 60
  • 1
  • 6
0
votes
2 answers

How to insert tiffs into slides with google script?

I'm trying to insert tiff images (and other unsupported formats, e.g. bmps) into google slides from drive using google scripts. I am using the following code: imageID = ''; slideID = ''; function insertImageFromDrive() { var image =…
sp2
  • 27
  • 7
0
votes
1 answer

What is the conversion to save a jpg image from a numpy array?

im working with a hamamatsu camera, I get a NumPy array and I want to save the array like an image, I can do it to a TIF image but i don't know how to convert the TIF image or the array to get a correct jpg image, I have this code: img =…
0
votes
1 answer

Tiff images to numpy arrays

import rasterio as rio from rasterio.plot import show from sklearn import cluster import matplotlib.pyplot as plt import numpy as np import glob for filepath in glob.iglob('./dengue3/*.tiff'): elhas_raster = rio.open(filepath) elhas_arr =…
user15653028
0
votes
1 answer

Issue in producing arrays out of tiff images

My main aim is to produce 1D array out of each image in the 'dengue' folder. For which I used below code to read the file using both PIL and GLOB. from PIL import Image import glob image_list = [] for filename in glob.glob('./dengue/*.tiff'): …
user15653028
0
votes
1 answer

Create or Change multipage TIFFs

I try to compose new and modify existing multipage TIFFs using Magick++. Does someone know how I can do this? I can read a specific page using this code: Image * img = new Image("path/to/image.tif[0]"); //read page 0 But how can I save changes back…
Van Coding
  • 24,244
  • 24
  • 88
  • 132
0
votes
1 answer

Tensorflow 2.6.0 Error during model.fit, after using tf.py_function: ValueError: Expect x to be a non-empty array or dataset

Tensorflow: 2.6.0, Ubuntu 20.04.3 LTS, GPU: GeForce MX130, CUDA version: 11.2 I have a dataset that contains 32-bit image files and 8-bit mask files, both in tiff format. It is a huge dataset. Therefore I would like to load my data in…
0
votes
2 answers

Is there a way to identify and remove thumbnail from tiff image?

We have a process in which we crop a pdf image using Adobe Illustrator. During this process, thumbnail metadata is being added to the image. Later we convert the image to eps. The image looks fine till then. Then we convert the image to tiff using…
Shiny S U
  • 43
  • 2
  • 5
0
votes
1 answer

multi-page TIFF to NRRD

I have a multi-page 3D tiff image (ie a stack of tiffs) of type uint16 and LZW compressed. I would like to convert the stack to the nrrd format, preferably in Python. Does anyone how this is done please? Which tools are appropriate for something…
Aenaon
  • 3,169
  • 4
  • 32
  • 60
1 2 3
99
100