Questions tagged [django-imagekit]

Automated image processing for Django models.

ImageKit is a Django app that helps you to add variations of uploaded images to your models. These variations are called “specs” and can include things like different sizes (e.g. thumbnails) and black and white versions.

Documentation is available at https://django-imagekit.readthedocs.io/

140 questions
1
vote
1 answer

How to generate a choicelist from all ImageSpecs

I want to generate a choicelist for all specs that inherit from imagekit.specs.ImageSpec. The idea is to allow users of the admin interface to select an ImageSpec to add to a picture. i.e: class Display(ImageSpec): pre_cache = True …
vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
1
vote
2 answers

Using thickbox with imagekit

I want to use jQuery Thickbox for displaying my images but so far when I click on a thumbnail all I get is the loading progress bar. I've set up my display as below (maybe this will help)
{% for p in photos %}
Stephen
1
vote
1 answer

Django-ImageKit issue with ImageSpecField original image

ImageKit has given me quite the headache over the last few days. I had an internal server error on my site because I followed the example ImageSpecField on the GitHub page: avatar_thumbnail = ImageSpecField(source='avatar', …
Joshua
  • 709
  • 2
  • 10
  • 23
1
vote
1 answer

How to iterate over columns of an image?

I want to transform images like this to add an effect to pictures in django as described here. I decided to implement it as a process for the great django-imagekit/photologue My knowledge of PIL isn't very good, so my question is How to intend a…
1
vote
2 answers

Django-imagekit: how to reduce image quality with a preprocessor_spec?

I've created this simple model class, with a Preprocessor to reduce my photos'quality (the photos'extension is .JPG): from django.db import models from imagekit.models import ImageModel from imagekit.specs import ImageSpec from imagekit import…
user176455
  • 685
  • 1
  • 10
  • 21
0
votes
1 answer

django-image-kit Changing Processor Values Inside Admin Save

I am trying to use image-kit with admin image uploads. In my edit form there are fields for width and height. I need a way to pass these values to image-kit's processors. But i can not find a way... ?
ratata
  • 1,129
  • 14
  • 42
0
votes
0 answers

Django shows Internal Server Error in Production while uploading images

My django application shows internal server error when I try to upload images in the production server when I turn the debug = False and it works well when debug = True. I'm using django-imagekit for processing the images. I'm using Whitenoise to…
Dhiman
  • 103
  • 1
  • 8
0
votes
1 answer

Django Imagekit I/O operation on closed file

I'm using Imagekit to resize pictures on a website i'm developing with Django, I've used Imagekit before without any issues but I have a strange problem. I am using S3 for Media/Static files. When I upload an image in admin and refresh the template…
Rob
  • 46
  • 3
0
votes
1 answer

Why images are not being uploaded from my template form to django admin and then to the media folder

I have a template containing a form . Whenever i am using the form to submit an image, the image is not being added to my admin table and neither being added to my media folder. What should I do ? I was expecting that the image would be uploaded to…
0
votes
1 answer

Django open local image

I'm Try to Open local demo image and save to test.jpg but i getting error like this the local image open browser using url "http://127.0.0.1:8000/media/demo.jpg" Traceback (most recent call last): File "E:\django and flutter…
0
votes
1 answer

django-Imagekit adding custom watermarks

How would i go about adding custom watermarks to pictures using imagekit .. or maybe some other package? In my django admin i need to have a choice of several watermarks that can be applied on uploaded photos. has someone done something simmilar ?…
zzart
  • 11,207
  • 5
  • 52
  • 47
0
votes
1 answer

No module named 'imagekit' in django rest framework

i'm running into a very weird error in django rest framework. I tried all the solutions proposed in stackoverflow but nothing. the error: Traceback (most recent call last): File "C:\Users\User\Desktop\IVAN.ru\IVAN_backend\backend\manage.py", line…
0
votes
1 answer

can't upload image from database in django server

in my project i am trying to save image in database and next i want to get that image from database in my dashborad everything working well, imgs where saved in db but when i am trying to get url from db and asign it to img src="" chrome says that…
0
votes
1 answer

"The file cannot be reopened." error from django-imagekit after moving a file

I'm using django-imagekit to generate a thumbnail on a Django model: class Book(models.Model): title = models.CharField(null=False, blank=False, max_length=255) thumbnail = models.ImageField( upload_to=upload_path, null=False,…
Phil Gyford
  • 13,432
  • 14
  • 81
  • 143
0
votes
1 answer

How to save an image from my DOM to backend in django?

I am building a web app using django, now one part of it is a small image editor which i created using Fabric.js, in which the user can upload an image(completely js code, not connected with the backend), and do some editing, and upload the…