You can change the name of the files generated by sorl and be sure that the name that you are giving to the image is unique, and if not, make a new name,
you can find information about that locking the code: https://github.com/sorl/sorl-thumbnail/blob/master/sorl/thumbnail/base.py#L32
and there are a settings parameter to tell sorl the class to override the default class.
Search things about that, I think that is the key.
--
Alex Perez
alex.perez@bebabum.com
bebabum be successful
c/ Còrsega 301-303, Àtic 2
08008 Barcelona
http://www.bebabum.com
http://www.facebook.com/bebabum
http://twitter.com/bebabum
This message is intended exclusively for its addressee and may contain
information that is confidential and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly prohibited by law.
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si no es vd. el destinatario indicado,
queda notificado que la utilización, divulgación y/o copia sin autorización
está prohibida en virtud de la legislación vigente.
Le informamos que los datos personales que facilite/ha facilitado pasarán a
formar parte de un fichero responsabilidad de bebabum, S.L. y que tiene
por finalidad gestionar las relaciones con usted.
Tiene derecho al acceso, rectificación cancelación y oposición en nuestra
oficina ubicada en c/ Còrsega 301-303, Àtic 2 de Barcelona o a la dirección de e-mail lopd@bebabum.com
-- 2012/6/5 kooliah <kooliah@djeve.sites.djangohosting.ch>
That's what i'll do.
Thanks for the answer
On 06/04/2012 03:10 PM, fabrixxm wrote:
On 4 Giu, 12:32, kooliah<kool...@djeve.sites.djangohosting.ch> wrote:
So i can't understand if i want to have a better ranking, it is betterfrom a user perspective, I think is much wors load a full size image
to not use sorl for this kind of images and use
<img src="{{ pic.picture.url }}" width="{{ pic.picture.width }}"
height="{{ pic.picture.height }}" />
that gives
<img src="/media/images/pics/productimage-picture-ccf-iveco-4.jpg"
width="187" height="280" />
and scale it down only to use its filename..
the same page you linked says also:
"
Create great alt text
The alt attribute is used to describe the contents of an image file.
It's important for several reasons:
•It provides Google with useful information about the subject matter
of the image.
We use this information to help determine the best image to return
for a user's query.
•Many people-for example, users with visual impairments, or people
using screen readers or who have
low-bandwidth connections—may not be able to see images on web
pages.
Descriptive alt text provides these users with important information.
"
so you should try to add a usefull alt alttrbute, like
{% thumbnail pic.picture "280x280" as image %}
<img src="{{ image.url }}" width="{{ image.width }}" height="{{
image.height }}" alt="{{ pic.title }}" />
{% endthumbnail %}
Which could render as
<img src="/media/cache/c7/73/c7737259a2760e164a61c8ac9d3df59f.jpg"
width="187" height="280" alt="CCF Iveco" />
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Alex Perez
alex.perez@bebabum.com
c/ Còrsega 301-303, Àtic 2
08008 Barcelona
http://www.bebabum.com
http://www.facebook.com/bebabum
http://twitter.com/bebabum
This message is intended exclusively for its addressee and may contain
information that is confidential and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly prohibited by law.
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si no es vd. el destinatario indicado,
queda notificado que la utilización, divulgación y/o copia sin autorización
está prohibida en virtud de la legislación vigente.
Le informamos que los datos personales que facilite/ha facilitado pasarán a
formar parte de un fichero responsabilidad de bebabum, S.L. y que tiene
por finalidad gestionar las relaciones con usted.
Tiene derecho al acceso, rectificación cancelación y oposición en nuestra
oficina ubicada en c/ Còrsega 301-303, Àtic 2 de Barcelona o a la dirección de e-mail lopd@bebabum.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment