Questions tagged [python-imaging-library]

Filter by
Sorted by
Tagged with
0
votes
1answer
46 views

Change in altitude value after resizing .tif file

I have a TIFF file of 7378x6923 (widthXheight) resolution. I resized it to 1200x1200 pixels using Image module in Python. img = Image.open('path to tif file') img = img.resize((1200,1200)) But after ...
3
votes
2answers
72 views

Watermarking TIFF with pillow in Python breaks georeferencing

I am trying to automate the watermarking of thousands of georeferenced TIFF files with a Python script. The files have related tfwx world files and aux.xml files. When I run the code the spatial ...
0
votes
1answer
364 views

Creating Multiple Multi-Band Images in Python

I am trying to create multiple multi-band images based off of Landsat data in Python. I am using PIL for this. How do I use PIL to create multiple multi-band images at the same time? Here is the code:...
1
vote
1answer
14k views

Opening TIFF image in PIL (Python)?

I'm new to Python and trying to work with TIFF images using the following code: from PIL import Image import numpy im = Image.open('LakeEx.tif') imarray = numpy.array(im) imarray.shape im.show()...
4
votes
1answer
7k views

Merge RGB band using python

I need to merge the RGB bands of three TIFF images. I'm trying to use a PIL library (Python Imaging Library), but this execution error happens: Traceback (most recent call last): File "merge.py", ...