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
17
votes
2 answers

Django easy-thumbnails vs sorl-thumbnail differences

I've been reading about and trying various thumbnailing apps for Django. These are the requirements: All generated thumbnails must be saved in a S3 bucket separate from the original images, i.e. separate storage class When the image instance is…
davidtgq
  • 3,780
  • 10
  • 43
  • 80
9
votes
2 answers

Remove all thumbnails generated with easy-thumbnails Django App

I am using easy-thumbnails in my Django 1.5 project to generate thumbnail images. I have been using several different sizes for thumbnails for testing, but now I would like to clear all thumbnails from my filesystem and from the easy-thumbnails…
yellowcap
  • 3,985
  • 38
  • 51
7
votes
4 answers

Django Rest Framework with easy-thumbnails

With a normal ImageField, serializing the URL is simply image = serializers.ImageField(). What should it look like when using easy-thumbnails? So far, I've only found a function for getting the URL: Django easy_thumbnails accessing image URLs Using…
davidtgq
  • 3,780
  • 10
  • 43
  • 80
7
votes
3 answers

Upload an image with AJAX, crop portion of our choice, and save in django admin

I need to give the admin the feature of uploading an image for an ImageField using AJAX, and then crop the portion of his choice (with a predefined dimension ratio or resolution) and then save the cropped image in the database. I tried…
Iqbal
  • 2,094
  • 1
  • 20
  • 28
7
votes
2 answers

Padded fit with easy thumbnails

I'm using easy-thumbnails to make thumbnails for my site. I want to create a thumbnail from an image that's 1500x1023px. The size of the desired thumbnail is 100x100px. What I want is for the thumbnail to show the entire logo rather than cropping or…
Josh
  • 12,896
  • 4
  • 48
  • 49
4
votes
1 answer

Django - When using Easy Thumbnails how to force a field to convert the thumbails to JPG even if PNG with alpha was provided

When using Easy Thumbnails I'm aware that you can globally configure for all images (even PNGs with alpha) to be converted to JPG by adding this to your settings.py THUMBNAIL_TRANSPARENCY_EXTENSION = 'jpg' But the problem is that I don't want to…
Alvaro Bataller
  • 487
  • 8
  • 29
4
votes
0 answers

Can't get easy-thumbnails nor sorl to work on mac, no errors generated

I'm trying to get easy-thumbnails to generate thumbnails using django 1.6.2 on a mac (darwin 2.7.5). I'll detail below my settings for easy_thumbnails, I have also tried with sorl - no debug was generated for either (THUMBNAIL_DEBUG = True). …
rix
  • 10,104
  • 14
  • 65
  • 92
4
votes
2 answers

Django Easy Thumbnail not working

I am using django easy_thumbnail in a project and I follow the instructions step by step. But i turns out that the url is not returned. The model containing imageField is: class Project(models.Model): name = models.CharField(max_length=100) …
Wei Xu
  • 1,629
  • 2
  • 19
  • 31
4
votes
2 answers

Default Image for Django easy_thumbnails

I have a model with an ImageField that I display using easy_thumbnails (|thumbnail_url). My question is how do I display a default image if the ImageField is empty? I would like this logic in the Model/View, NOT in the…
nak
  • 690
  • 6
  • 15
4
votes
1 answer

Django easy_thumbnails accessing image URLs

Is it possible to access the URLs of easy_thumbs created images? I have a model with an ImageField and a ModelForm to match. # models.py class ModelWithAnImage(models.Model): image = ThumbnailerImageField( upload_to='images', …
rockingskier
  • 9,066
  • 3
  • 40
  • 49
3
votes
1 answer

Django, retrieve image using url and save it ThumbnailerImageField of easy_thumbnails

I have used easy_thumbnailsto store images in my application. I have a model name Profile that has picture field which is ThumbnailerImageField. In my code I am fetching image using a url I have using the follwing code f =…
Rajesh Yogeshwar
  • 2,111
  • 2
  • 18
  • 37
3
votes
1 answer

Generating a thumbnail for a Tastypie API with easy-thumbnails

I'm trying to use the dehydrate method to generate my thumbnail like so: class PostResource(ModelResource): user = fields.ForeignKey(UserResource, 'user') class Meta: queryset = Post.objects.all() resource_name = 'post' …
renegadeofunk
  • 445
  • 1
  • 3
  • 11
2
votes
1 answer

Easy Thumbnail with Django raising access denied error

I'm using S3Boto3Storage to save docs in my aws s3 and tried to use easy-thumbnails to generate thumbnail images, please find the code below Model class class ThumbnailTestModel(models.Model): sample1 = models.FileField( …
2
votes
1 answer

How to retrieve absolute urls to thumbnails generated via django-filer easy-thumbnails

I am using following template tags to display thumbnails in my templates {% load thumbnail %} {% thumbnail obj.image 250x250 crop %} thumbnail template tag returns relative urls to thumbnail image files as expected. But I would like it to return…
negativefix
  • 517
  • 1
  • 4
  • 9
2
votes
1 answer

How to generate high resolution thumbnails for only some aliases?

I'm working on a photography website in Django. Because the site is “responsive”, we pre-generate numerous sizes of each image using set aliases. In particular, 7 images with a variety of widths starting with 960 to 3,840 pixels wide in 480px…
mkoistinen
  • 7,724
  • 3
  • 41
  • 56
1
2 3 4