products image thumbnails custom sizes

12 views
Skip to first unread message

Julien Maupetit

unread,
Jun 13, 2011, 10:55:04 AM6/13/11
to satchm...@googlegroups.com
Dear all,

first, thank you for making this incredible tool available to the community!

As this email subject mention, I have a question about automatically
generated thumbnails sizes for products (and others in fact): I did
not found how/where to customize different sizes for products in
satchmo documentation. Any help would be warmly appreciated :p

Sincerely.

--
MAUPETIT Julien - Plateforme RPBS

MTi - Unite Inserm / Paris 7 Diderot UMR-S973
Université Paris Diderot Paris 7
Bâtiment Lamarck, 5ème étage unité MTI
36, rue Hélène Brion 75013 Paris
FRANCE

tel: +33 1 57 27 83 95
cel: +33 6 16 99 24 43 (New!!)

http://julien.maupetit.free.fr -- http://julien.maupetit.alwaysdata.net

Nan

unread,
Jun 13, 2011, 3:30:06 PM6/13/11
to Satchmo users


You should be able to customize these by overriding the templates.
See Django's template loader documentation[1][2] and the docs for Sorl
Thumbnail v3.2.x[3], which is what Satchmo uses to handle thumbnail
resizing in templates.

[1] https://docs.djangoproject.com/en/dev/ref/templates/api/#loading-templates
[2] https://docs.djangoproject.com/en/dev/topics/templates/#template-inheritance
[3] https://github.com/sorl/sorl-thumbnail/wiki to find download; docs
inside

On Jun 13, 10:55 am, Julien Maupetit <julien.maupe...@univ-paris-

Julien Maupetit

unread,
Jun 14, 2011, 5:10:50 AM6/14/11
to satchm...@googlegroups.com
Great! Thank you for the answer.

I thought i needed to customize pre-generated thumbnails sizes via the
templates of the admin interface. Hence, just to be sure, that I have
completely understood the way sorl works, thumbnails will be
generated on-the-fly and stored in the django CACHE, but the
corresponding image file will not be stored in my MEDIA directory?

Sincerely.

> --
> You received this message because you are subscribed to the Google Groups "Satchmo users" group.
> To post to this group, send email to satchm...@googlegroups.com.
> To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.

Nan

unread,
Jun 14, 2011, 9:43:19 AM6/14/11
to Satchmo users

Thumbnails are generated on the fly as needed, but are stored on disk
in your MEDIA directory so that they do not have to be re-generated on
subsequent calls unless the parent image has changed.

On Jun 14, 5:10 am, Julien Maupetit <julien.maupe...@univ-paris-
diderot.fr> wrote:
> Great! Thank you for the answer.
>
> I thought i needed to customize pre-generated thumbnails sizes via the
> templates of the admin interface. Hence, just to be sure, that I have
> completely understood the way sorl works,  thumbnails will be
> generated on-the-fly and stored in the django CACHE, but the
> corresponding image file will not be stored in my MEDIA directory?
>
> Sincerely.
>
>
>
>
>
>
>
>
>
> On Mon, Jun 13, 2011 at 9:30 PM, Nan <ringe...@gmail.com> wrote:
>
> > You should be able to customize these by overriding the templates.
> > See Django's template loader documentation[1][2] and the docs for Sorl
> > Thumbnail v3.2.x[3], which is what Satchmo uses to handle thumbnail
> > resizing in templates.
>
> > [1]https://docs.djangoproject.com/en/dev/ref/templates/api/#loading-temp...
> > [2]https://docs.djangoproject.com/en/dev/topics/templates/#template-inhe...
> > [3]https://github.com/sorl/sorl-thumbnail/wikito find download; docs
> > inside
>
> > On Jun 13, 10:55 am, Julien Maupetit <julien.maupe...@univ-paris-
> > diderot.fr> wrote:
> >> Dear all,
>
> >> first, thank you for making this incredible tool available to the community!
>
> >> As this email subject mention, I have a question about automatically
> >> generated thumbnails sizes for products (and others in fact): I did
> >> not found how/where to customize different sizes for products in
> >> satchmo documentation. Any help would be warmly appreciated :p
>
> >> Sincerely.
>
> >> --
> >> MAUPETIT Julien - Plateforme RPBS
>
> >> MTi - Unite Inserm / Paris 7 Diderot UMR-S973
> >> Université Paris Diderot Paris 7
> >> Bâtiment Lamarck, 5ème étage unité MTI
> >> 36, rue Hélène Brion 75013 Paris
> >> FRANCE
>
> >> tel: +33 1 57 27 83 95
> >> cel: +33 6 16 99 24 43 (New!!)
>
> >>http://julien.maupetit.free.fr--http://julien.maupetit.alwaysdata.net
>
> > --
> > You received this message because you are subscribed to the Google Groups "Satchmo users" group.
> > To post to this group, send email to satchm...@googlegroups.com.
> > To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/satchmo-users?hl=en.
Reply all
Reply to author
Forward
0 new messages