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

easy-thumbnails: Using the scale_and_crop image processor in a thumbnail alias

I can't figure out the proper format to use in specifying that specs for the scale_and_crop image processor in a thumbnail alias. I've tried many variations, most recently this one: 'year_thumb': { 'scale_and_crop': ( ('size', (120,…
Dmitry Minkovsky
  • 36,185
  • 26
  • 116
  • 160
1
vote
0 answers

image not showing in browser using easy thumbnail with Amazon S3 in Django Project

I am working on Django project and using easy thumbnails for cropping the images. Previously I used the in local enviornment and its working fine. but when I move media to Amazon S3 then the images not showing ( could not load the image) in the…
lavesh pal
  • 11
  • 2
1
vote
0 answers

Django easy_thumbnails reduce database queries

I am profiling a django app with django debug toolbar. I want to reduce the number of database queries from view and rendering. For each easy_thumbnail template tag, e.g. {% thumbnail coop.logo 250x250 %} there seem to be two database calls: SELECT…
caliph
  • 1,389
  • 3
  • 27
  • 52
1
vote
1 answer

Accessing custom thumbnail options in templates

In a Django CMS project with Filer enabled, the Admin dashboard for Filer allows you to create custom Thumbnail Options, similar to defining an alias using easy-thumbnails. How do I access these options in templates? {{ obj.image.thumbnails }}…
lusk
  • 541
  • 5
  • 21
1
vote
1 answer

How can I crop to square with Django Easy Thumbnails?

I'm using easy-thumbnails all over my site. It works fine generally. But now I'd want to create a product feed for Facebook and the pictures need to be 600x600px square. It looks like this: thumbnailer =…
htomika
  • 41
  • 6
1
vote
1 answer

Using easy-thumbnails (or other 3rd party library) with jinja2 in Django

What is the process for using a third party filter like easy-thumbnails with Jinja2 in Django? Do I need to somehow register the filters I need to use? Specifically, I want to use the thumbnail_url filter that I used to use like:
Chris
  • 321
  • 3
  • 15
1
vote
0 answers

easy thumbnail, without thumbnail image works but with thumbnail, nothing shows up

my image is displayed without thumbnail functionality, but as soon as I put thumbnail I get nothing. I'm using easy thumbnail, I followed the documentation mainly. In template {% load thumbnail %}
user5659156
1
vote
2 answers

Specify a filename suffix with easy-thumbnails in django

I am using the easy-thumbnails lib in django to create thumbnails. However, I can't figure out how to override the thumbnail naming process. At the moment the lib is appending the thumbnail size to the file name, but I would like to specify a custom…
RunLoop
  • 20,288
  • 21
  • 96
  • 151
1
vote
2 answers

Migrating easy_thumbnails within Django upgrade from 1.6.7 to 1.7.1

I'm trying to upgrade from Django 1.6.7 to 1.7.1 However, after upgrading the Django version in my local virtualenv and all my own Django apps (for which the new migrate works), I cannot get migrate for the easy_thumbnails app (version 2.2) to…
Joseph Victor Zammit
  • 14,760
  • 10
  • 76
  • 102
1
vote
1 answer

Resizing the original source if width exceeds "x" value (django + easy-thumbnails)

i am tryng to resize the original source (ThumbnailerImageField object) when dimensions are bigger than x value. It is all ok until i have to do the resize that i dont have any idea how to accomplish. This is my code: def save(self): if self.pk…
1
vote
1 answer

Using easy_thumbnails_ffmpeg

I want to use the easy_thumbnails_ffmpeg library to get Thumbnails for videos in Python, however, I get a weird error saying that the file was not found. I have been looking for examples of how to use the library, but no luck and no documentation…
Abdellah Benhammou
  • 402
  • 1
  • 8
  • 22
1
vote
1 answer

Django - Where to write code for easy-thumnails custom THUMBNAIL_NAMER?

I am working on a Django project using the wonderful easy-thumbnails plugin to generate thumbnails for images. I don't like how the thumbnails have the format of: source.jpg.100x100_q80_crop_upscale.jpg If my image is named source.jpg, I'd much…
Landon
  • 57
  • 2
  • 9
1
vote
0 answers

Django easy-thumbnails plugin makes darker images

I get this behavior only while using easy_thumbnails. If the image is not processed through easy_thumbnails it works well. When cropping (through easy_thumbnails) images get darker and with different hue (more green). Could it be something with the…
1
vote
1 answer

freebsd Python27,mod_wsgi, Django, easy_thumbnails error: InvalidImageFormatError: The source file does not appear to be an image

i want to make this work on freebsd I am always receiving this error when trying to generate a thumbnail with the easy_thumbnails module: InvalidImageFormatError: The source file does not appear to be an image I have tried installing PIL from…
user1427258
  • 68
  • 1
  • 7
0
votes
0 answers

Override Easy Thumbnails Dango File Type Setting

While using easy thumbnails in Dango I have set the default file type to webp. It works well. But on occasion I need it to ignore this setting. For example when I render an og image I would like it to stay as a PNG. Would it be possible to add an…
Stephen Brown
  • 564
  • 1
  • 9
  • 23