Sorl thumbnails VS Google

12 views
Skip to first unread message

alkatron

unread,
Jun 4, 2012, 8:18:27 AM6/4/12
to satchm...@googlegroups.com
May be it's a stupid question, but i can't find an answer.

Using sorl thumbnails and inspecting the page source i notice that images are coded in html in the following way:

    <img src="/media/cache/c7/73/c7737259a2760e164a61c8ac9d3df59f.jpg" width="187" height="280" />

but here

http://support.google.com/webmasters/bin/answer.py?hl=en&answer=114016

"The filename can give Google clues about the subject matter of the image. Try to make your filename a good description of the subject matter of the image. For example, my-new-black-kitten.jpg is a lot more informative than IMG00023.JPG. Descriptive filenames can also be useful to users: If we're unable to find suitable text in the page on which we found the image, we'll use the filename as the image's snippet in our search results."

So i can't understand if i want to have a better ranking, it is better 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" />

instead of

    {% thumbnail pic.picture "280x280" as image %}
    <img src="{{ image.url }}" width="{{ image.width }}" height="{{ image.height }}" />
    {% endthumbnail %}


Is this reasoning correct?

Thanks to all

Kooliah

Tomas Neme

unread,
Jun 4, 2012, 12:09:27 PM6/4/12
to satchm...@googlegroups.com
> that gives
>     <img src="/media/images/pics/productimage-picture-ccf-iveco-4.jpg"
> width="187" height="280" />

the problem with this is that if your picture is a 4MB 20MP picture
and you want to show a 187x280 version of it, you'll have your clients
download the whole 4MBs and have their browsers shrink the picture on
the client's side.

Besides this, sorl-thumbnail lets you resize the picture to whatever
size you want, the code you showed actually doesn't change the size of
the picture, and you might as well just do <img src="{{
pic.picture.url }}" />.

Moreover, in MY case, sorl-thumbnail's pictures render as something
like <original_filename>__<width>x<height>.png nothing as you showed,
so maybe there's some setting that can be fixed in your project?

--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.

Marconius Cuthemustard

unread,
Jun 4, 2012, 1:39:52 PM6/4/12
to satchm...@googlegroups.com
in MY case, sorl-thumbnail's pictures render as something
like <original_filename>__<width>x<height>.png

Me too. I would figure out what is causing the renaming instead of using your original pictures. The originals can be huge and may no look as nice either.

alkatron

unread,
Jun 4, 2012, 7:07:27 PM6/4/12
to satchm...@googlegroups.com
On 06/04/2012 06:09 PM, Tomas Neme wrote:
>
> Moreover, in MY case, sorl-thumbnail's pictures render as something
> like<original_filename>__<width>x<height>.png nothing as you showed,
> so maybe there's some setting that can be fixed in your project?
>
>
I installed last sorl version, and no particular settings is required.

Here it does not seem to be strange, they have the same renaming system,
but different problem...

http://stackoverflow.com/questions/6187465/sorl-thumbnail-bad-urls

May be new version work in this way.......

Anyway i'll add "alt" and "title" tag to <img> in the template using the
name of product, hoping to bypass this problem....

Thanks for the answers



Reply all
Reply to author
Forward
0 new messages