-3
votes
1answer
44 views

Django 1.5, images are not displayed, static files

I'm a fresher in Django 1.5 and I have some problems with images. I have images in my folder (C:\Users\Neitrosha\PycharmProjects\ecomstore\static\images\products) There are two folders - 'thumbnails' ...
1
vote
1answer
29 views

PIL png resize to smaller resolution makes file size bigger

I'm resizing .png files with python's PIL. For some reason the file size is 3x times bigger than the original, even though I the resolution got reduced. So how do I save the file correctly? Test1: ...
2
votes
1answer
16 views

an error with django media and cache

I use from sorl-thumbnail. I have a model like this model from sorl.thumbnail import ImageField class Book(models.Model): title = models.CharField(max_length=255) thumb = ...
0
votes
2answers
35 views

Not able to display/Convert Image

I am new to Python and Opencv. I am using the following code. import Image import ImageChops im1 = Image.open("img1.png") im2 = Image.open("img2.png") diff = ImageChops.difference(im2, im1) When I ...
1
vote
0answers
63 views

Constructing high resolution images in Python

Say I have some huge amount of data stored in an HDF5 data file (size: 20k x 20k, if not more) and I want to create an image from all of this data using Python. Obviously, this much data cannot be ...
0
votes
2answers
19 views

PIL saves large images as static

I'm using PIL (Python Imaging Library) to stitch together several hundred 512x512 images. The resulting image is about 300 MB. It works perfectly for results that are around 50 - 150 MB, but after ...
2
votes
1answer
33 views

Extracting connected objects from an image in Python

I have a graysacle png image and I want to extract all the connected components from my image. Some of the components have same intensity but I want to assign a unique label to every object. here is ...
0
votes
0answers
28 views

error: Couldn't open Image file

I'm kind of a noob with programming and I've been trying to load this gif onto my program but this this error keeps showing up. import os, sys import pygame from pygame.locals import * ...
0
votes
1answer
35 views

What does this pyglet error mean?

I'm trying to blit some simple images, and learn to use ImageGrid and other functions, but this same error keeps popping up: File "C:\Python27\lib\site-packages\pyglet\gl\lib.py", line 105, in ...
29
votes
9answers
18k views

Python: The _imagingft C module is not installed

I've tried lots of solution that posted on the net, they don't work. >>> import _imaging >>> _imaging.__file__ 'C:\\python26\\lib\\site-packages\\PIL\\_imaging.pyd' >>> ...
0
votes
2answers
51 views

Send images using sockets Python

I have some problems with this code... send not the integer image but some bytes, is there someone than can help me? I want to send all images I find in a folder. Thank you. CLIENT import socket ...
0
votes
1answer
7k views

No module named Image

Sorry for my grammar, I don't speak English. After I set filebrowser, tinymce, and grappelli, I get this error: No module named Image try: from PIL import Image except ImportError: import ...
0
votes
5answers
58 views

How to find out if an image is loaded?

I have a django project which is running (for example) on localhost:8000. I have an image in this address localhost:8000/static/test.jpg . A user may open just this image by going to it's url and not ...
1
vote
1answer
40 views

Python File Compression

Okay, so I am attempting to compress an image file as much as possible for storage (NOTE, before being able to view the file I would un-compress it, the compressed file does not need to be usable, it ...
1
vote
3answers
25 views

Python urllib2 Images Distorted

I'm making a program using the website http://placekitten.com, but I've run into a bit of a problem. Using this: im = urllib2.urlopen(url).read() f = open('kitten.jpeg', 'w') f.write(im) f.close() ...

1 2 3 4 5 65
15 30 50 per page