Questions tagged [easy-thumbnails]

A thumbnailing application for Django 1.4+

Easy Thumbnails is a powerful, yet easy to implement thumbnailing application for Django 1.4+

The primary function of easy-thumbnails is to dynamically create thumbnails based on a source image.

So whenever a thumbnail does not exist or if the source was modified more recently than the existing thumbnail, a new thumbnail is generated (and saved).

Documentation
Project source on GitHub

60 questions
0
votes
1 answer

Django easy-thumbnails serialize with Django Rest Framework

The docs on their GitHub page suggests that what I'm trying to do should work: thumb_url = profile.photo['avatar'].url In my project, it gives an error: THUMBNAIL_ALIASES = { '': { 'thumb': {'size': (64, 64), 'upscale': False}, …
davidtgq
  • 3,780
  • 10
  • 43
  • 80
0
votes
1 answer

Easy-thumbnails not generated for images with uppercase extensions

I am using the latest version of easy-thumbnails and it is working great except that when a user tries to upload an image with an uppercase extension e.g. image.JPG, no thumbnail gets generated. I have confirmed that my simply changing the JPG to…
RunLoop
  • 20,288
  • 21
  • 96
  • 151
0
votes
1 answer

Django jpg thumbnail generation blocked in production

I am using easy-thumbnails to generate thumbnails for images uploaded. In the dev environment, thumbnails are properly generated and uploaded to S3 for png and jpg files. However, in production, only thumbnails for png images are generated, not jpg.…
RunLoop
  • 20,288
  • 21
  • 96
  • 151
0
votes
0 answers

Asynchronous thumbnails with django easy-thumbnails

I have installed django easy-thumbanils 2.2. It has worked well up to now, but I decided to make it asynchronous to improve performance. Following the docs, I implemented the following code: models.py #saved_file.connect(generate_aliases_global) ->…
RunLoop
  • 20,288
  • 21
  • 96
  • 151
0
votes
1 answer

Upload photo from Android device to Django backend and save it to database

I have to upload an image from Android device to a web app written in Python and Django. For storing images, I have made use of easy thumbnails. What I have done so far is convert the image to base64 string to and post it to server. Well this is…
user3631116
0
votes
1 answer

Heroku syncdb fails because of easy_thumbnail

I get the same error everytime I try to deploy my app using Heroku 'ImportError: No module named easy_thumbnails.optimize' My app was running just fine locally on Django but since I moved it to deploy it on heroku I am getting this error My github…
Han Ry
  • 87
  • 1
  • 6
0
votes
1 answer

Easy Thumbnails not working on Ubuntu

I've been using Django Easy Thumbnails and it works very nicely in my local development server on Mac OS X. But I can't get it to run in my Ubuntu production environment. I get no errors (DEBUG is set to True), it just doesn't generate the image nor…
ip.
  • 3,306
  • 6
  • 32
  • 42
0
votes
2 answers

Is there a way to get file object from the form in template?

views.py def manage_photo(request, obj_id): form = MediaFileForm(instance=obj) if request.method == "POST": # Some actions here # ... return render(request, 'manage_photo.html', {'form': form,}) I would like to display…
Vlad T.
  • 2,568
  • 3
  • 26
  • 40
0
votes
1 answer

Django easy-thumbnails: Copy a ThumbnailerImagefield object

I have this in my models.py: class MyModel(models.Model) imgA = ThumbnailerImageField(upload_to="site_images/", null=True, blank=True) imgB = ThumbnailerImageField(upload_to="site_images/", …
Adrian Lopez
  • 2,601
  • 5
  • 31
  • 48
0
votes
2 answers

Django easy_thumbnails and post_delete

I am deleting a related model from a form (nearly the same way as django admin), I have an item which has many images, image belongs to Item (ForeignKey). I have implemented a post_delete signal to delete thumbnails and the image when deleting the…
petkostas
  • 7,250
  • 3
  • 26
  • 29
0
votes
2 answers

Get image thumbnail from easy-thumbnails by image location

I have an icon image in all apps: /app_name/static/model_name/images/icon.png which is adding to model list in admin interface. And I want to crop it using easy-thumbnails and custom template tags: template.html: {% load project_tags %}
user2919162
  • 69
  • 10
0
votes
1 answer

PIL / Easy Thumbnails Missing Dependencies Django

I ported a web application to another machine, but am having a problem getting django easy thumbnails setup on another team member's machine (mac osx 10.6 snow leopard). I know it requires PIL, but am having problems getting it and perhaps its…
Nick B
  • 9,267
  • 17
  • 64
  • 105
0
votes
1 answer

Adding a layer to an image: Easy-Thumbnails

In Django, I am using Easy-Thumbnails. Before saving an image file in my model field, I want to just do some process to the image, like adding a layer or an other image on or behind it. What do I do to achieve this? I have already wasted 4 hours…
-1
votes
1 answer

Django filer thumbnail's path

I've created a custom User model based on AbstractUser model. How can I find the right path to my thumbnail to use in a template file ? models.py class User(AbstractUser): photo = FilerImageField(related_name='profile_photo', null=True,…
ns68
  • 9
  • 1
  • 1
-2
votes
1 answer

Easy Thumbnails - How to test a view that contains with ThumbnailerImageField in DRF

I have a model called "Post" that looks for example like this: # models.py from django.db import models from easy_thumbnails.fields import ThumbnailerImageField class Post(models.Model): name = models.CharField(max_length=255) cover =…
1 2 3
4