django-imagekit
django-imagekit copied to clipboard
Automated image processing for Django. Currently v4.0
**views.py** ``` class imagess(ImageSpec): processors = [SmartResize(100,100)] format = 'JPEG' options = {'quality': 100} register.generator('main:imagess', imagess) ``` **index.html** `{% generateimage 'main:imagess' source=source_file %}` this generates a image of height 100...
Hi, how can I use a variable inside the thumbnail template tag? I am following the tutorial: ``` {% load imagekit %} {% generateimage 'myapp:thumbnail' source=source_file -- alt="A picture of...
I have the following model on my App ``` def image_path(self, filename): return 'app_name/images/{}/{}'.format(slugify(self.name), filename) class Color(models.Model): name = CICharField(max_length=22, unique=True) image = models.ImageField("Image", upload_to=image_path, blank=True) ``` Once the image...
I need to fit user uploaded image to 1000px and put a watermark. Also I need to create thumbnail (without watermark). ``` python class Photo(models.Model): image = ProcessedImageField(upload_to='photo', processors=[ ResizeToFit(1000,...
I can not find propper way how to cleanup cache and storage ``` python Model.image.delete() # or Model.delete() ``` doesnt delete `ImageSpecField` data related to this model\field and `ImageSpecField` havent...
I updated a old project and among many other updates, python v2 is replaced by v3. The problem is, the hash in URLs are changed. I use the default cache...
At least in 4.0.2 imagekit.utils.get_field_info fails to get the instance in a spec associated with a ProcessedImageField. It worked in the past (not sure exactly with which version, unfortunately). Or,...
Hi, I'm facing an issue of django-imagekit crash during thumbnail generation when the input image is too large ( 6000 9000 px). I'm using django-imagekit==3.2.5 with Pillow==2.7.0. Django process is...
Hi, I'm currently using ImageSpecField. However, the cached files disappeared and I got 404 errors instead. I don't know why caches disappear, but when they do, they are not regenerated....
Expands tox tests. Relates to #494