Hi,
I have a script that takes an image and makes it looks like it
bounces. Here it is:
import Image
def saveImg(p,pos):
im = Image.open(new_logo.jpg)
name = new_logo. + str(p).zfill(4) + .jpg
om = Image.new(im.mode,(im.size[0],im.size[1]))
box = (0,pos,im.size[0],im.size[1])
On Mon, Aug 3, 2009 at 3:32 AM, Astan Cheeastan.c...@al.com.au wrote:
I have a script that takes an image and makes it looks like it bounces.
Here it is:
But it keeps failing with a ValueError: images do not match when I do the
pasting. What am I doing wrong?
You're passing in floating
See http://mail.python.org/pipermail/image-sig/2009-July/005790.html
I noticed the same problem.
My workaround was to use:
numpy.asarray(img).reshape(1, scale_x).reshape(0, scale_y)
(in case that helps anyone).
___
Image-SIG maillist -
I get this problem (with python2.6, PIL 1.1.6, numpy 1.3.0 )
from PIL import Image
import numpy
i = Image.open('chart_bl.tif')
a = numpy.asarray(i)
o.size, a.shape
((13228, 18710), (18710, 13228))
o.size, a.shape, a.dtype
((13228, 18710), (18710, 13228), dtype('bool'))
numpy.histogram(a)
Hi All,
I have a JPEG image of size 25KB and I want to compress it to 15KB, But I
want to keep the original height and width same and reduce the size of the
image. Is there any easy way to achieve this? Please let me know.
Thanks,
Teja
___
Image-SIG
Hello Michele, thanks for help. I'll check out this others libraries.
Thanks.
On Wed, Jul 29, 2009 at 9:18 AM, Michele Petrazzo - Unipex
michele.petra...@unipex.it wrote:
Gewton Jhames wrote:
Hello everyone,
Hi,
I just want to load a TIFF image, append another image (TIFF or not) on
Dear all,
I am a newbie with image/gis reading on Python.
Is there a way (a library?) of I read .asc files and display it on python?
This extension of files are common for ESRI exchange raster format.
Unfortunately I am not able to install PROJ4, GDAL or GRASS
on this machine, because it is
Hi,
I'm trying to calculate the statistics of a tiled tiff file, containing
image pyramids, using PIL 1.1.6. The problem is that I have no way to
exclude the pyramid levels from the calculations thus the results are not
correct. I managed to achieve the required result using GDAL, but it is
rather
On Mon, Jul 27, 2009 at 6:15 PM, Salvador
Gutierrezguti...@plattsburgh.edu wrote:
Hi,
1. I have python2.5 in my system but it was not built from source, so
Python.h does not exist and the compile fails.
2. I have python3.1 also in my system (this one was built from source), so
Python.h
On Mon, 27 Jul 2009 19:08:16 Gary Capell wrote:
I get this problem (with python2.6, PIL 1.1.6, numpy 1.3.0 )
from PIL import Image
import numpy
i = Image.open('chart_bl.tif')
a = numpy.asarray(i)
o.size, a.shape
((13228, 18710), (18710, 13228))
o.size, a.shape, a.dtype
((13228,
On 2009-07-30 05:09, Milton Cezar Ribeiro wrote:
a = numpy.array(landscape_matrix)
i = Image.fromarray(a)
i.show()
But now I need to define a color table like
#index of color, R, G, B
0 255 255 255
1 127 127 0
2 127 0 127
3 255 0 0
4 0 255 0
How can I assign this color table to
On 2009-07-28 02:52, Tejovathi P wrote:
I have a JPEG image of size 25KB and I want to compress it to 15KB, But
I want to keep the original height and width same and reduce the size of
the image. Is there any easy way to achieve this? Please let me know.
You can try adjusting the 'quality'
On Tue, 04 Aug 2009 17:07:18 you wrote:
I'm OK with the operation not making much sense, I'm not OK with python
dying with a segmentation fault.
For what it's worth, I also get a segfault with a.sum():
Hmmm, interesting. I've just given it a try with pure numpy boolean arrays.
And that
13 matches
Mail list logo