﻿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
11155	Buffer size in get_image_dimensions too small	seph	nobody	"The buffer size inside django/core/files/images.py, get_image_dimensions is currently set to 1024 bytes in trunk.
This wouldn't nescessarily mean many iterations if the image can be identified through PIL without loading the entire image. But using a 32 MB TIFF will result in excessive CPU usage due to the large amounts of iterations needed to reach 32 MB (somewhere over 30.000 iterations). This effectively means the ImageField which uses get_image_dimensions cannot operate under these conditions.

Increasing this buffer from 1K to 16K would mean a lot for general performance of the ImageField.

My current workaround is moneypatching the function to override the buffer size, but some kind of fix or setting would really be appreciated."		closed	File uploads/storage	dev		duplicate	ImageField, get_image_dimensions, buffer		Design decision needed	1	0	0	0	0	0
