sorl-thumbnail does not create cache

2015-07-25 Thread Tao Huang
I'm using sorl-thumbnail in django. I followed the installation guide. But thumbnail seems not working. It cannot generate cache folder under MEDIA_URL. Also, I checked my mysql database. Table thumbnail_kvstore is always empty. In settings.py: INSTALLED_APPS = ( ... 'sorl.thumbnail

Things to know about sorl-thumbnail

2013-11-10 Thread Aamu Padi
I am using sorl-thumbnail to create thumbnails for my project. I am implementing it only in templates and not in the models or the view. And each of the thumbnail are linked with their original image, which are used by a lightbox. As a newbie, I wanted to know, some of its functionality: 1

Re: sorl-thumbnail or easy thumbnail with apache

2013-09-09 Thread Robin Lery
I have used it in the templates. Do i use it in the models for uploaded images??? On Tue, Sep 10, 2013 at 1:31 AM, Robin Lery <robinl...@gmail.com> wrote: > Hello, > Has anyone tried sorl-thumbnail or easy_thumbnail with apache for users > uploaded media images??? I

sorl-thumbnail or easy thumbnail with apache

2013-09-09 Thread Robin Lery
Hello, Has anyone tried sorl-thumbnail or easy_thumbnail with apache for users uploaded media images??? I am really stuck with these. When I upload it using the apache server, it does not load the uploaded image, it only loads the ones that have been run through the django's inbuilt server

sorl-thumbnail or easy-thumbnail

2012-09-15 Thread galgal
What image engine to choose sorl-thumbnail or easy-thumbnail? I saw on github, that easy-thumbanil is still updates, and sorl last update is about 5 months ago. I use sorl for a while but want to try something else. Does easy-thumbnail work in admin when image are displayed? sorl has a special

Re: [sorl thumbnail] get_thumbnail not working -- IOError

2012-07-19 Thread bruce
- /root/django/sorl_thumbnail/sorl/thumbnail/shortcuts.py in get_thumbnail 1. return default.backend.get_thumbnail(file_, geometry_string, **options) ... ▶ Local vars <http://192.168.71.58:8000/admin/labcv/person/2/#> - /root/django/sorl_thumbnail/

[sorl thumbnail] get_thumbnail not working -- IOError

2012-07-19 Thread bruce
Dear All, I am trying to use the ImageField in my model, and use get_thumbnail in the forms.py. The problem is: If I don't use get_thumbnail, it works well. The image was uploaded successfully and the thumbnail shows on the admin page. It works well. However, If I try to use the get_thumbnail

Re: Storing Sorl-thumbnail created images in separate folder

2012-04-30 Thread Swaroop Shankar V
e into a separate directory? >>>> >>>> Thanks and Regards, >>>> Swaroop Shankar V >>>> >>>> >>>> >>>> On Sun, Apr 29, 2012 at 8:09 PM, Kelly Nicholes <kelbolici...@gmail.com >>>> > wrote: >>>

Re: Storing Sorl-thumbnail created images in separate folder

2012-04-30 Thread Swaroop Shankar V
oles >>> <kelbolici...@gmail.com>wrote: >>> >>>> It always just caches the files for me in a completely different >>>> directory. >>>> >>>> On Saturday, April 28, 2012 1:06:12 PM UTC-6, Swaroop Shankar wrote: >>>>&

Re: Storing Sorl-thumbnail created images in separate folder

2012-04-30 Thread Swaroop Shankar V
gards, >> Swaroop Shankar V >> >> >> >> On Sun, Apr 29, 2012 at 8:09 PM, Kelly Nicholes >> <kelbolici...@gmail.com>wrote: >> >>> It always just caches the files for me in a completely different >>> directory. >>> >>>

Re: Storing Sorl-thumbnail created images in separate folder

2012-04-30 Thread Tiago Almeida
or me in a completely different >> directory. >> >> On Saturday, April 28, 2012 1:06:12 PM UTC-6, Swaroop Shankar wrote: >>> >>> Hello All, >>> I am using sorl-thumbnail extensively in my project. It works perfectly >>> fine except for one issue w

Re: Storing Sorl-thumbnail created images in separate folder

2012-04-29 Thread Swaroop Shankar V
different directory. > > On Saturday, April 28, 2012 1:06:12 PM UTC-6, Swaroop Shankar wrote: >> >> Hello All, >> I am using sorl-thumbnail extensively in my project. It works perfectly >> fine except for one issue which is regarding the storage. The default >

Re: Storing Sorl-thumbnail created images in separate folder

2012-04-29 Thread Kelly Nicholes
It always just caches the files for me in a completely different directory. On Saturday, April 28, 2012 1:06:12 PM UTC-6, Swaroop Shankar wrote: > > Hello All, > I am using sorl-thumbnail extensively in my project. It works perfectly > fine except for one issue which is regarding

Storing Sorl-thumbnail created images in separate folder

2012-04-28 Thread Swaroop Shankar V
Hello All, I am using sorl-thumbnail extensively in my project. It works perfectly fine except for one issue which is regarding the storage. The default behaviour of sorl-thumbnail is to create the images in the same folder where the original image is stored. Is it possible to provide a separate

Re: sorl thumbnail

2011-06-15 Thread Kenneth Gonsalves
On Wed, 2011-06-15 at 10:39 -0700, Greg Donald wrote: > So what does one use for thumbnails when sorl thumbnail works great > in > development but fails on two different production servers? > > easy-thumbnail -- regards KG http://lawgon.livejournal.com Coimbato

Re: sorl thumbnail

2011-06-15 Thread Greg Donald
So what does one use for thumbnails when sorl thumbnail works great in development but fails on two different production servers? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web vi

Re: sorl thumbnail

2011-06-11 Thread Greg Donald
luding my cache directory is fully readable and writable by all. It doesn't say it's a permissions error is the thing, just that the stream is broken. Meanwhile I can create a thumbnail easily using `manage.py shell`. From that I know sorl thumbnail has all the required libraries installed and my

Re: sorl thumbnail

2011-06-11 Thread Blue Cuenca
Is your cache, readable and writable to other groups/users as well? On 6/11/2011 1:11 AM, Greg Donald wrote: > On Fri, Jun 10, 2011 at 11:59 AM, Greg Donald wrote: >> File "/usr/local/lib/python2.6/dist-packages/PIL/ImageFile.py", line >> 52, in raise_ioerror >> raise

Re: sorl thumbnail

2011-06-10 Thread Greg Donald
On Fri, Jun 10, 2011 at 12:41 PM, Nan <ringe...@gmail.com> wrote: > I encountered that error at one point when upgrading Sorl Thumbnail > versions.  Can't remember exactly how I worked around it, but it had > something to do with clearing out caches. My cache is clean, this is a n

Re: sorl thumbnail

2011-06-10 Thread Nan
I encountered that error at one point when upgrading Sorl Thumbnail versions. Can't remember exactly how I worked around it, but it had something to do with clearing out caches. There are data caches that you can clear with Sorl's custom management commands and disk caches that you can delete

Re: sorl thumbnail

2011-06-10 Thread Greg Donald
On Fri, Jun 10, 2011 at 11:59 AM, Greg Donald wrote: >  File "/usr/local/lib/python2.6/dist-packages/PIL/ImageFile.py", line > 52, in raise_ioerror >   raise IOError(message + " when reading image file") > > IOError: broken data stream when reading image file And then more

sorl thumbnail

2011-06-10 Thread Greg Donald
Sorry if this is off-topic, I was unable to find a user group for my exact issue. I'm using sorl thumbnail with Django. On my local setup it works fine, but in production the thumbnails are not made. My code looks like this: {% load thumbnail %} {% thumbnail up.image "32x32" cr

sorl-thumbnail: upscale won't wok

2011-06-05 Thread Eugene Goldberg
Hello! I'm trying to create a thumbnail using sorl-thumbnail in Django template: source: {{ photo.image.width }} x {{ photo.image.height }} {% thumbnail photo.image "1024x1024" upscale="False" as photo_thumbnail %} thumbnail: {{ photo_thumbnail.width }} x {{ ph

django-adminfiles and sorl-thumbnail

2010-10-19 Thread Dominic Osterried
Hi, I'm trying to install django-adminfiles and therefore I have to install sorl-thumbnails, too. When I now try to create or change am Entry in the admin the adminfiles-widget doesn't render, but just gets me an error-message saying that 'thumbnail' is an invalid block tag. The same happens,

Re: sorl-thumbnail: random name in Thumbnail field

2010-04-30 Thread natebeacham
Assuming ThumbnailField extends ImageField, try: class foo(models.Model): pic = ThumbnailField(upload_to = lambda instance: 'pics/%s.jpg' % str(uuid.uuid4()), size=(200, 200)) On Apr 29, 12:57 pm, xRobot <ciaosonoanto...@gmail.com> wrote: > thanks but now I prefer to tweak sorl-

Re: sorl-thumbnail: random name in Thumbnail field

2010-04-29 Thread xRobot
thanks but now I prefer to tweak sorl-thumbnail ;) --- On 29 Apr, 18:51, "ge...@aquarianhouse.com" <ge...@aquarianhouse.com> wrote: > http://docs.djangoproject.com/en/dev/howto/custom-file-storage/ > > On Apr 29, 6:48 pm, xRobot <ciaosonoanto...@gmail.co

Re: sorl-thumbnail: random name in Thumbnail field

2010-04-29 Thread ge...@aquarianhouse.com
http://docs.djangoproject.com/en/dev/howto/custom-file-storage/ On Apr 29, 6:48 pm, xRobot wrote: > No I am newbie and I don't know how to overwrite storage... could you > help me  ^_^ ? > > > > On 29 Apr, 12:46, "ge...@aquarianhouse.com"

Re: sorl-thumbnail: random name in Thumbnail field

2010-04-29 Thread xRobot
No I am newbie and I don't know how to overwrite storage... could you help me ^_^ ? On 29 Apr, 12:46, "ge...@aquarianhouse.com" wrote: > Did you try to overwrite the storage? > > On Apr 29, 6:16 pm, xRobot wrote: > > > > > > > I

Re: sorl-thumbnail: random name in Thumbnail field

2010-04-29 Thread ge...@aquarianhouse.com
Did you try to overwrite the storage? On Apr 29, 6:16 pm, xRobot wrote: > I want to use str(uuid.uuid4()) instead of the name uploaded. > > For instance: I have this model: > > class foo(models.Model): >    pic  = ThumbnailField(upload_to='pics', size=(200, 200)) > > I

sorl-thumbnail: random name in Thumbnail field

2010-04-29 Thread xRobot
I want to use str(uuid.uuid4()) instead of the name uploaded. For instance: I have this model: class foo(models.Model): pic = ThumbnailField(upload_to='pics', size=(200, 200)) I am uploading hello_world.jpg and I should save these named versions should be saved for example in:

Re: sorl thumbnail: messed-up thumb file path

2009-12-06 Thread omat
rField(max_length=100) > >     logo = models.ImageField(upload_to='logo/', > >                              blank=True, null=True) > > > Thanks. > > > -- > > omat > > > On Dec 6, 4:45 pm, Kenneth Gonsalves <law...@au-kbc.org> wrote: > >

Re: sorl thumbnail: messed-up thumb file path

2009-12-06 Thread SmileyChris
                   blank=True, null=True) > > Thanks. > > -- > omat > > On Dec 6, 4:45 pm, Kenneth Gonsalves <law...@au-kbc.org> wrote: > > > > > On Sunday 06 Dec 2009 4:27:47 pm omat wrote: > > > > Sorl thumbnail is creating invalid directories f

Re: sorl thumbnail: messed-up thumb file path

2009-12-06 Thread omat
wrote: > On Sunday 06 Dec 2009 4:27:47 pm omat wrote: > > > Sorl thumbnail is creating invalid directories for thumbnails in my > > development environment (mac os x, django dev server). > > do not blame Sorl thumbnail - please post that part of your model that shows > 'u

Re: sorl thumbnail: messed-up thumb file path

2009-12-06 Thread Kenneth Gonsalves
On Sunday 06 Dec 2009 4:27:47 pm omat wrote: > Sorl thumbnail is creating invalid directories for thumbnails in my > development environment (mac os x, django dev server). > do not blame Sorl thumbnail - please post that part of your model that shows 'upload_to' setting. -- regard

sorl thumbnail: messed-up thumb file path

2009-12-06 Thread omat
Hi All, Sorl thumbnail is creating invalid directories for thumbnails in my development environment (mac os x, django dev server). In my local development settings: MEDIA_URL = "http://localhost:8000/; I use the "thumbnail" template filter and it generates crazy directories unde

Re: sorl thumbnail error

2009-10-11 Thread Malcolm MacKinnon
Thanks very much. On Sun, Oct 11, 2009 at 3:03 PM, Michael P. Jung <mpj...@terreon.de> wrote: > > > I'm getting error messages with sorl thumbnail. [...] All works fine, > > until I use the following template thumbnail tag: > > > > > > You must

Re: sorl thumbnail error

2009-10-11 Thread Michael P. Jung
> I'm getting error messages with sorl thumbnail. [...] All works fine, > until I use the following template thumbnail tag: > > You must not put braces around variables passed to a template tag. Just write: {% thumbnail obj 80x80 %} That also explains why your {% thumbnail '/p

Re: sorl thumbnail error

2009-10-11 Thread Arthur Metasov
2009/10/12 Malcolm MacKinnon <mmack3...@gmail.com> > Hi, > I'm getting error messages with sorl thumbnail. I'm simply trying to show > thumbnail images on my template. I select a number of images in my views, > and iterate over my selection. Note that all my images are a certa

sorl thumbnail error--correction

2009-10-11 Thread Malcolm MacKinnon
-- Forwarded message -- From: Malcolm MacKinnon <mmack3...@gmail.com> Date: Sun, Oct 11, 2009 at 2:32 PM Subject: sorl thumbnail error To: django-users@googlegroups.com Hi, I'm getting error messages with sorl thumbnail. I'm simply trying to show thumbnail images on my te

sorl thumbnail error

2009-10-11 Thread Malcolm MacKinnon
Hi, I'm getting error messages with sorl thumbnail. I'm simply trying to show thumbnail images on my template. I select a number of images in my views, and iterate over my selection. Note that all my images are a certain size, and I'm just trying to reduce that size in my template using sorl

Re: problem with sorl-thumbnail invalid image

2009-03-22 Thread Nate Reed
No, I didn't create the image. I'm guessing you chose the "Interlaced" option, or that "Adobe Photoshop PNG" is an interlaced PNG format. I'm not that familiar with Photoshop. On Sun, Mar 22, 2009 at 4:22 PM, DLitgo wrote: > > Nate, > > I had a similar problem to this,

Re: problem with sorl-thumbnail invalid image

2009-03-22 Thread DLitgo
Nate, I had a similar problem to this, I'm not sure if its the exact same issue, but by any chance did you use Photoshop to create/save the image as png? I noticed that by default Photoshop saves the image as an "Adobe Photoshop PNG File" as opposed to "Portable Networks Graphic Image" file.

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
As a workaround I used Gimp to convert this image to a compatible format before uploading it. Hopefully my users won't mind this limitation. It does seem a rather glaring omission from PIL, though, doesn't it? Nate On Sat, Mar 21, 2009 at 5:38 PM, Malcolm Tredinnick < malc...@pointy-stick.com>

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 17:33 -0700, Nate Reed wrote: [...] > Is there some way I can work with interlaced PNG's in PIL? Typing "PIL interlaced PNG" into Google suggests not. That's one of those problems that will be fixed by somebody with sufficient motivation to write a patch for PIL, I

Re: problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
More info: >>> im = Image.open('my_logo.png') >>> outfile = 'my_logo.jpg' >>> im.save(outfile) Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 1272, in save self.load() File

problem with sorl-thumbnail invalid image

2009-03-21 Thread Nate Reed
I have a model that uses sorl-thumbnail.ImageWithThumbnailsField: class Vendor(models.Model): url = models.URLField() logo = ImageWithThumbnailsField( blank = True, null = True, upload_to = 'logos', thumbnail={'size': (80, 80)} ) When I try to create a

Re: Sorl Thumbnail, automatically create in admin

2008-05-29 Thread Andrew Myers
On May 29, 11:29 am, "Josh.MIPS" <[EMAIL PROTECTED]> wrote: > Does anyone know a way to force Sorl to create > the thumbnails as soon as an object is saved in the admin interface, > rather than waiting until a thumbnail is needed in a template? You could override the model's save() method to

Sorl Thumbnail, automatically create in admin

2008-05-29 Thread Josh.MIPS
I am working on integrating django with a legacy PHP application. Saving images, and thumbnails through the admin interface is an essential part of the project I am working on. Sorl-thumbnail (as I understand) only creates thumbnails once they are called from within a template, but because

Re: sorl-thumbnail: Permission Denied

2008-03-28 Thread Josh
I figured it out. The problem was that I was using get_image_url instead of just image, so it was attempting to write to media_root/ media_root/path/to/image instead of media_root/path/to/image. On Mar 19, 1:04 pm, Josh Ourisman <[EMAIL PROTECTED]> wrote: > I'm trying to set up sorl-