﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20193	About replacing PIL with Wand	kamaldeep.tumkur@…	nobody	"Hello,

I've been using Django 1.3 on a small project and have a custom template tag to return image dimensions. I have imported the django.core.files.images module. The PIL library which is in use there seems to be a little restrictive in terms of the kinds of files it can accept. I used a sample TIF file I had and called 'get_image_dimensions' with this file path. PIL was not able to identify the TIF file. A simple JPG file worked fine.

Instead, I used Wand on the same TIF file and was able to get dimensions accurately. Here's an example of it's usage from the page:
http://docs.wand-py.org/en/0.2-maintenance/index.html

from wand.image import Image

with Image(filename='mona-lisa.png') as img:
    print img.size
 

I have not tried any further to validate the robustness of this package, but general reading seemed to suggest that Wand is a newer version layered upon ImageMagick and may even have a PIL compatibility layer in the future.

Just wanted to bring this up for consideration. Thanks for your time.
"	Uncategorized	closed	Uncategorized	1.5	Normal	duplicate			Unreviewed	0	0	0	0	0	0
