•  » Engine
  •  » Displaying original

#1 2012-11-14 23:47:09

flop25
Piwigo Team
2006-07-06
7037

Displaying original

Hello
The new multi-size system is great but resource consuming : for people who wants the same system as before (thumb+original in medium size No HD), it's not possible to disable all sizes and display the original.
that's issue:2685
I've seen the system and tried to solve the problem by myself. But as far as I understand, the original it's not part of the derivative system : my knowledge is not enough to solve that.
I've just succeed a basic javascript:changeImgSrc('{$U_ORIGINAL|@escape:javascript} combined with elseif isset($current.unique_derivatives) && count($current.unique_derivatives)==1 && isset($U_ORIGINAL). But as I said, the original is not pat of the derivative system so not recognized for session/cookies...


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#2 2012-11-15 10:41:01

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Displaying original

I think displaying the original is not the good way, on Piwigo 2.3 I had a websize and a hd-size

What we could do is add a checkbox (on the multisize config screen) : "disable multisize"
if checked we remove the multisize configuration and display 2.3 options (thumbnail size, websize size, resize original or not)

in facts, if checked, the system disable all size but Medium and configure thumbnail and medium with the above values

there are also small changes on the public part (replace multisize button by 'view hd' button, ...)

Offline

 

#3 2012-11-19 18:12:24

flop25
Piwigo Team
2006-07-06
7037

Re: Displaying original

We need to let the admin choose at least, if he wants to display the original.
Taking what you just said and exposed in a merged version, it could lead to :
-an off/on option on the admin page : a jquery trick show/hide. On the backend, the websized pics would be a predefined size (let's say Medium, hard coded). So the pictures for websize will get the -me suffix, and the size is still customizable.

-on picture_content.tpl, a zoom icon on the picture would merge the 'show HD' and Original option on the drop down menu

-on picture_content.tpl, directly display the original if the required size is nearly the same as the Medium size : pre processing this would avoid to pass through i.php (might be unnecessary but it means less manipulation)

Original really needs to displayed in a way : you can have already websized pics (usually pictures only for computer : 3D simu, graphics, schema, graphic elements...) and don't want them duplicated x times just to display them

just a thing : during the 2.5 updates, what happens to websize?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 
  •  » Engine
  •  » Displaying original

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact