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
0
votes
1 answer

ImageKit does not show thumbnail on Django Admin

I have deployed an ubuntu server running Django. For image thumbnailing am using PILLOW and ImageKit. When I try to save an entry the main ImageFile is saved and the thumbnail is created aswell but once I save I get a server error 500. Once I reload…
AndroidKrayze
  • 349
  • 2
  • 5
  • 21
0
votes
1 answer

NameError: name 'ResidentialReference' is not defined [Django - ImageKit]

For some reason I get an error once I try to apply ImageKit onto a model to create a thumbnail for an ImageField. I am using the ImageKit library for Django which you can find here My code is below : from django.db import models from PIL import…
AndroidKrayze
  • 349
  • 2
  • 5
  • 21
0
votes
3 answers

Syncdb not working

from django.db import models from imagekit.models import ImageSpecField from imagekit.processors import ResizeToFill class Product(models.Model): class Meta(): db_table = 'tovar' product_title = models.CharField(max_length=200) product_img =…
Dimon Kudimon
  • 53
  • 3
  • 7
0
votes
1 answer

django-imagekit refuses to upscale an image

I'm having some issues with ImageKit. When an image is submitted through the admin forms, I want it to be resized to a specific size (320x450). My current configuration is the following: imagen = ProcessedImageField(upload_to='tapas', …
lithiium
  • 647
  • 8
  • 25
0
votes
1 answer

Field in Model Not Recognized For Migrations

In my UserProfile model, I just added django-imagekit and the thumbnail field here to create thumbnails for me, but when i run ./manage.py makemigrations, django says that there are no changes detected, and thumbnail field is not added to the…
rfj001
  • 7,948
  • 8
  • 30
  • 48
0
votes
0 answers

Can't change image using imagekit ModelForm

I'm currently using: Python 3.3 Django 1.6.5 django-imagekit 3.2.1 django-guardian (I don't think it's related, I can confirm the row-level permissions are correct on the Profile model) I can't seem to change the profile image through a ModelForm.…
mpalen
  • 1
  • 1
0
votes
1 answer

How to create a thumb and push it to s3 using django-imagekit?

I am using Django 1.6.2 and django-imagekit==3.2.1. I have the following in my model: class Avatar(models.Model): avatar = ProcessedImageField(upload_to=/here/the/path, format='JPEG', …
nuss
  • 1,280
  • 2
  • 9
  • 12
0
votes
0 answers

Trouble implementing Django ImageKit

I am using Django ImageKit And I have absolutely no idea how to go about implementing a user uploaded image for a profile the user will have. I have it here list in my models. All attempts I have worked out have failed. Can any please guide me to…
Amechi
  • 742
  • 3
  • 11
  • 32
0
votes
1 answer

Django how to use template tag - Imagekit app

models.py def get_upload_file_name(instance, filename): return "uploads/%s/%s/profile_photo/%s" % (instance.user.username[:1], instance.user.username, filename) class UserProfile(models.Model): ###..... photo =…
Mihai Zamfir
  • 2,167
  • 4
  • 22
  • 37
0
votes
1 answer

NSData from ALAssetRepresentation always has wrong orientation when sent to my Django Server

In my application, I allow my users to either upload a picture from their photo library or take a picture. Once that picture is taken (or choosen) I use that AssetURL to do the following: - (void)uploadImageWithAssetURL:(NSURL *)url named:(id)name…
abisson
  • 4,365
  • 9
  • 46
  • 68
0
votes
1 answer

Ajax image upload in Django using Django-imagekit

I've been trying to get my head around uploading image files in Django. There are several tutorials that I have followed and they do help a bit, for example this one and the one here. While they do give a basic idea of what is happening/how to think…
ellimilial
  • 1,246
  • 11
  • 20
0
votes
2 answers

Trouble installing django-imagekit - 'execfile' is not defined

I am having problems installing django-imagekit under python 3.2/django 1.5. Is django-imagekit only for python 2 (then why is it available in pip-3.2)? Trying to install django-imagekit from within my virtualenv.…
Kjell-Bear
  • 759
  • 1
  • 5
  • 12
0
votes
2 answers

Display thumbnails in an object list using Django and django-imagekit

How do I display thumbnails for my item list....also is it possible to display just a specific thumbnail or a random thumbnail? So far I have this in my template: {% for p in item.images.all %} {{ p.get_thumbnail.url }} {% endfor %}
Stephen
  • 5,959
  • 10
  • 33
  • 43
0
votes
1 answer

django-imagekit generateimages command fail

I'm using django 1.5 and django-imagekit==3.0.1 My settings.py modifications: IMAGEKIT_CACHEFILE_DIR = MEDIA_ROOT + '/imges_cache' model fields: photo = models.ImageField(_(u"Photo"), upload_to="user_photos/", blank=True,…
scarab
  • 75
  • 1
  • 7
0
votes
1 answer

Django - loading large images includes extra styling

When loading large images (600x300px) in Django, extra styling is added preventing the image from being displayed. page.html The output, when inspected through Google Chrome:
phalt
  • 1,244
  • 1
  • 10
  • 21
1 2 3
9
10