v1.4.6: Can I create normal image url without width and height in it.

The reason I am asking this is that currently in my gallery (which is based on Gallery 3 that is going into "hibernation") my "Normal" images have URLs like:
(curren domain)/var/resizes/misc-pics/Jacky_June1983.jpg

The image URLs in Zenphoto are:
(test domain)/cache/misc-pics/Jacky_June1983_w580_h456.jpg

The directory structure is no problem for making a rewrite rule. The problem will be the "_w580_h456" bit because it could be almost anything. I'm fine with the thumbnails having them because none of those are linked to or currently indexed on Google and such, but it would be nice if the normal image could just be Jacky_June1983.jpg or even Jacky_June1983_normal.jpg so it doesn't potentially conflict with the original image.

I just realized another problem.. all the thumbnails are in the same /cache/ directory so there's no way I can disallow their indexing.

Be better if normal images were in /cache/normal/ and thumbnails were in /cache/thumbs/. Hmmmm...

Just one of several things to think of when evaluating a new platform. (been looking at Piwigo as well and their URLs are a convoluted mess heh). Anyway, I'm just starting to think out loud now..

Thanks,
Mark H.

Comments

  • MarkRH Member
    Duh, brain fart, just now noticed that the thumbnails have "_thumb" in the file name so disallowing indexing of those in robots.txt will not be an issue.
  • acrylian Administrator, Developer
    But to answer your question anyway, those cannot be changed. At least no without any major coding chanages. Unless you make your robots.txt strict or forbid access via htaccess Zenphoto sites are generally indexed quite well.

    You might also want to try the sitemap-extended plugin.
  • MarkRH Member
    I'm sure the normal images will get indexed just fine over time I just meant being able to write a set of 301 redirect rules so the bots can find the new location of the images they already have indexed rather than just get 404 not found errors.

    Hmmm.. just tried out the Garland theme. It has image links like (test domain)/cache/misc-pics/Jacky_June1983_w520.jpg where the w520 seems consistent between various images. That would make writing rules easier. I guess it's not that big a deal in the end.
  • acrylian Administrator, Developer
    Ah, ok, I forgot the migration issue.

    Generally the names of the cached images (there are also the full ones untouched) have the sizes in the name they are created with. So `Jacky_June1983_w520.jpg` means the image was created with a setting image width 520. That would be the sized (big) image on the single image page.
    It may of course differ depending on the sizes set and if it is a portrait or landscape image.

    Zenphoto lets you create all kinds of image/thumb sizes via theme. So there is not just one thumb or one big (sized) image type. You can havae as many as your site/theme requires. You can have different for different albums depending on your theme setup, uncropped, cropped, differently cropped etc.
Sign In or Register to comment.