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
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
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
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
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
- /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/
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
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:
>>>
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:
>>>>&
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.
>>>
>>>
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
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
>
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
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
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
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
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
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
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
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
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
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
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
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,
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-
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
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"
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
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
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:
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:
>
>
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
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
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
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
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
> 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
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
-- 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
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
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,
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.
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>
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
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
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
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
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
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-
49 matches
Mail list logo