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

Error after changing Django database from SQLite3 to PostgreSQL

I have changed an existing database for a Django project from SQLite3 to PostgreSQL and moved all the data with dumpdata and loaddata commands. When I'm running the server, It's giving me the following error - ContentType 19 for
Farhan M.
  • 53
  • 4
  • 8
0
votes
1 answer

Extra alias thumbnail generated

I am using easy-thumbnails the image-cropping app and aliases in this model (simplified): from image_cropping import ImageRatioField from easy_thumbnails.fields import ThumbnailerImageField class Image(SlugMixin, models.Model): slug_from_field…
jphilip
  • 136
  • 2
  • 9
0
votes
1 answer

Django easy-thumbnails getting weird naming with duplicate extensions

I'm using easy-thumbnails, the original file is saved correctly but the thumbnails are being saved with a duplicate file extension: 11.jpg 11.jpg.100x100_q85.jpg I would like the thumbnails to be named like this: 11.100x100_q85.jpg My model looks…
0
votes
1 answer

InvalidImageFormatError Exception The source file does not appear to be an image

So I am using fallback default image to avoid 500 error and it is not successful. I keep getting the same error "InvalidImageFormatError: The source file does not appear to be an image". In my case I try to thumbnail an image that does not…
0
votes
1 answer

Fixtures data for model containing images, files and tags

I am using Djano 3.1, Python 3.6, easy-thumbnails 2.7 and django-taggit 1.3 I want to create a fixtures data file for my model. Here is my (simplified) model: myapp/models.py class Post(models.Model): featured_image =…
0
votes
1 answer

How to use easy-thumbnails with static in template?

I wonder how (if it is possible) load thumbnail for static files with easy-thumbnails package. I tried:
Piotr Wasilewicz
  • 1,751
  • 2
  • 15
  • 26
0
votes
1 answer

How to fix page doing 4 extra queries when using easy_thumbnails in combination with Amazon S3?

I'm setting up Amazon S3 to use as my media server for serving image files. I use easy_thumbnails for thumbnailing the images. easy_thumbnails does the cropping before sending them to S3, therefore storing 4 images with each a different size.…
Vincent
  • 1,494
  • 12
  • 26
0
votes
1 answer

dynamic php zoom image on click of thumbnail

I want to show multiple images on product detail page dynamically in php.I have an image_arr for each product.If I click on any of the thumb images,the zoom image should change.This is what I have tried but I know its not correct as when I click on…
Snehal
  • 137
  • 1
  • 4
  • 16
0
votes
1 answer

Image uploaded increases size in Django-CMS

I've got a django-cms plugin with a image field and I've noticed that the size of the images I upload using this plugins is bigger than the originals one. This can't happen, do you have any idea what could be causing this? Could it be some kind of…
patricia
  • 1,075
  • 1
  • 16
  • 44
0
votes
1 answer

Does Easy-Thumbnails use a "box" parameter in order to crop an image?

I'm developing a website with: Python Django Wagtail In this project there are a lot of images and all of them have an ugly yellow border. In order to remove this border I need to crop all the images sistematically. Every image has its own focal…
nifel87
  • 17
  • 3
0
votes
1 answer

How can i use both easy thumbnails and sorl-thumbnail in the same django projects yet they have the same template tags?

I have this project where im using sorl-thumbnail to resize and crop my images on the template, in the same project i happen to use django CMS to manage my content, the problem is Django CMS needs 'easy-thumbnails for its filer app both apps use…
gathagu
  • 195
  • 4
  • 14
0
votes
0 answers

How to prevent upload of "Bad images" in Django? (PILLOW, easy-thumbnails)

Intro I have been using Django with easy-thumnails for quite a while, and today I stumbled upon one really nasty bug, but because I have always permitted easy-thumbnails to do as it pleases I consider myself a noob at this. TL;DR I need to validate…
0
votes
1 answer

Get the image (picture) of an django database using django-image-cropping and easy-thumbnails

I have an django installation with the plugins django-image-cropping and easy-thumbnails in use. I want to add users pictures to there vCard using vObject. models.py: (...) class Person(TranslatableModel): (...) pic =…
mogoh
  • 992
  • 2
  • 7
  • 27
0
votes
1 answer

thumbnail creation crashes in easy_thumbnails.processors.background

I am using Django and easy-thumbnails 2.3. My intention is to take an image, scale it down so that it fits a square and fill the empty area with white color in case of non-square original images. Also in case of transparent images the transparency…
Amelse Etomer
  • 1,253
  • 10
  • 28
0
votes
2 answers

Django-image-cropping + easy_thumbnails + django-watermarker

Has anyone tried to use all of these features together? I can combine only any 2 of them together, but cant figure out how to use all 3, and i definitely need it. I want free cropping to be done from admin(to choose which part of image will be…
LinPy fan
  • 179
  • 1
  • 11