Libratus: rewrite + folders

Honestly - I am a bit "empty" and ask myself if I did mix something up or if it is right this way.

When I am on this page
https://my_spc/com/custom_station/ullmann_magistrale_9005/P8060150_k_1.jpg

And enlarge the picture, then I have this address for the picture:
https://my_spc/com/zp-core/i.php?a=custom_station/ullmann_magistrale_9005&i=P8060150_k_1.jpg&s=1400&cw=0&ch=0&q=85&wmk=!&check=4316dc4f3331d7e59812efef3595081c0bed4609

When I now copy the address and short it to:
https://my_zpc/com/zp-core/i.php?a=custom_station/ullmann_magistrale_9005&i=P8060150_k_1.jpg

Then ZenPhoto is redirecting and displaying the hidden album directory in the addressbar:
https://my_zpc/com/alben/custom_station/ullmann_magistrale_9005/P8060150_k_1.jpg

So, is it a bug or a feature? :D

Comments

  • acrylian Administrator, Developer
    edited January 2019

    What is your exact setting for the full image? This seems not a protected vidw as there is some query is missing. Then I can try to reproduce.

    Sidenote: it is strongely recommend to use a rewrite suffix on the single image page like
    https://my_spc/com/custom_station/ullmann_magistrale_9005/P8060150_k_1.jpg because the url is looking like an image but actually is a page. This may lead to security issue and may be rejected by search engines (if this is important to you ;-))

  • acrylian Administrator, Developer
    edited January 2019

    Sorry, confused myself… Your link is a image processor link requesting an uncropped size of 1400 px (widht or height depending on your setting for largest side). This is always used if the image is not yet cached. Your image size seems to be as large or larger than the full image already so Zenphoto does not process anything and just returns the full image. Thats absolutely normal and basic behaviour.

    This all has nothing to do with the theme.

  • Thanks for the suffix advice! :)
    I forgot about that. ;)

    what and where do I need to pull or push a lever to replace
    /zp-core/i.php?a=
    against something nice looking?

  • acrylian Administrator, Developer

    what and where do I need to pull or push a lever to replace /zp-core/i.php?a= against something nice looking?

    You can't and don't need to. The image processor is only used once to create the cached version (cropped resized). Afterwards the cached version is servered. See the user guide about caching.

  • Nordlicht Member
    edited January 2019

    Thanks!
    Yep, reading the documentation every here and there and then would answer many questions. :smiley:

Sign In or Register to comment.