Announcement

#1 2012-06-25 20:13:09

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Original Image

Hi,

just upgraded to 2.4 and now it seems that I am blind.
My original images have a width of 1024 pixel.

When I first visit an album they are displayed at this width (right click infos says: upscaled from 792px)
When I now switch size to any other size and then go back to original size, my original size image is displayed with 792 pixel width.

Where I can disable this scaling of the original image ?

I have not found an option for that.

Cheers
Ralf


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

#2 2012-06-25 20:35:15

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Original Image

I think this is related to theme Stripped. I have notified Zaphod.

Offline

 

#3 2012-06-25 20:37:45

Zaphod
Former Piwigo Team
2006-11-13
441

Re: Original Image

Do you have a link to your website?
I don't understand the problem.

Last edited by Zaphod (2012-06-25 20:38:52)

Offline

 

#4 2012-06-25 20:38:24

Brendan
Member
Ann Arbor Michigan
2012-06-25
8

Re: Original Image

Exact same issue with the stripped theme. Using elegant now, no problems.

Offline

 

#5 2012-06-26 19:30:43

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Re: Original Image

Hi,

no it is not a stripped issue. With the stripped theme the image is displayed in the original dimension:
1024x681

Website link is:
http://www.pixel-wonders.de

I have set the elegant theme, so you can see what I mean.
Example:
http://www.pixel-wonders.de/picture/120 … 5-wildlife

The page is loaded with the image displayed in medium dimensions (792x594px)
As said above the original image has 1024x681
The problem is, that when I switch to "original" the image is displayed in the medium dimension (792x594).
Same happens with Sylvia template, so I guess it is not a template issue.

My question:
Where can I set, that when choosing "Original" - the image will be displayed in original size (1024x681).

Update:
When logged in, the original image is displayed correct. But when I now switch from original to medium and then back to original it remains in 792x594 px.
RightClick "Reload page" brings back the original dimensions, but it still shows in the image information:
792x594 scaled up to 1024x681


Cheers
Ralf

Last edited by Ralf (2012-06-26 19:59:36)


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

#6 2012-06-26 20:09:59

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Re: Original Image

Addition:
I hope this makes it a little bit clearer:
http://www.pixel-wonders.de/upload/2012 … ae7956.jpg

If you have a look at the image you will see the 792pixel width.

Logging in per ftp an looking at the image, it has 1024 pixel width.


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

#7 2012-06-26 21:27:27

flop25
Piwigo Team
2006-07-06
7037

Re: Original Image

broken link


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

 

#8 2012-06-26 21:31:09

flop25
Piwigo Team
2006-07-06
7037

Re: Original Image

question : http://www.pixel-wonders.de/upload/2012 … de0b76.jpg is the watermark applied by you before the upload or by piwigo new system ?


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

 

#9 2012-06-26 21:32:00

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Re: Original Image

The imag was uploaded with the watermark.

I guess the image size scaled to 792px is because the sizes is dependant of the browser image width ?

Last edited by Ralf (2012-06-26 21:33:02)


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

#10 2012-06-26 21:51:11

flop25
Piwigo Team
2006-07-06
7037

Re: Original Image

hum no
the image is really 792px width ; this one is bigger http://www.pixel-wonders.de/i/upload/20 … b76-la.jpg I will let people answer but i think the script shouldn't resize upp....

OKAY I've just saw the problem ! it might be due to url rewritting : could you rename the .htaccess in somewhat else ?


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

 

#11 2012-06-26 22:15:07

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Re: Original Image

You are my king :-)

Just edited the htacess.
Since the update to 2.4 there are the entries:
<IfModule mod_rewrite.c>
RewriteEngine on
## redirect <2.4 thumbnails hotlinks to i.php
RewriteRule ^upload/(.*)/thumbnail/TN\-(.*)\.([a-z0-9]{3,4})$ i.php?/upload/$1/$2-th.$3 [L]
RewriteRule ^galleries/(.*)/thumbnail/TN\-(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-th.$3 [L]

## redirect <2.4 high-def hotlinks to original file
RewriteRule ^upload/(.*)/pwg_high/(.*)\.([a-z0-9]{3,4})$ upload/$1/$2.$3 [L]
RewriteRule ^galleries/(.*)/pwg_high/(.*)\.([a-z0-9]{3,4})$ galleries/$1/$2.$3 [L]

## redirect <2.4 low-def hotlinks to i.php
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?www\.ralf\-kerkhoff\.de/.*$ [NC]
RewriteRule ^upload/(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/upload/$1/$2-me.$3 [L]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?www\.ralf\-kerkhoff\.de/.*$ [NC]
RewriteRule ^galleries(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-me.$3 [L]
</IfModule>

And here is what causes the problem.

I have two domains.
Both point to my piwigo installation.

Update was done from the ralf-kerkhoff.de domain.
If I point my browser to:
http://www.ralf-kerkhoff.de
anything works fine.

Just replaced the ralf\-kerkhoff entries with pixel\-wonders and anything works fine :-)
Thanks again.

Just one last question about the htaccess.
I have edited the htacess for piwigo 2.3:
AcceptPathInfo On
Options -Indexes +MultiViews

and the local file editor has:
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';

to get sef friendly urls.

Do I need these entries in 2.4 or are they obsolete now because of the block:
<IfModule mod_rewrite.c>
RewriteEngine on
added to the htacess from piwigo 2.4.

Again a big thank you :-)

Cheers
Ralf


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

#12 2012-06-26 22:19:40

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

Re: Original Image

they are not obsolete you can keep them

here what you can do to deal with your two domains

Code:

<IfModule mod_rewrite.c>
RewriteEngine on
## redirect <2.4 thumbnails hotlinks to i.php
RewriteRule ^upload/(.*)/thumbnail/TN\-(.*)\.([a-z0-9]{3,4})$ i.php?/upload/$1/$2-th.$3 [L]
RewriteRule ^galleries/(.*)/thumbnail/TN\-(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-th.$3 [L]

## redirect <2.4 high-def hotlinks to original file
RewriteRule ^upload/(.*)/pwg_high/(.*)\.([a-z0-9]{3,4})$ upload/$1/$2.$3 [L]
RewriteRule ^galleries/(.*)/pwg_high/(.*)\.([a-z0-9]{3,4})$ galleries/$1/$2.$3 [L]

## redirect <2.4 low-def hotlinks to i.php
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?www\.(ralf\-kerkhoff|pixel\-wonders)\.de/.*$ [NC]
RewriteRule ^upload/(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/upload/$1/$2-me.$3 [L]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?www\.(ralf\-kerkhoff|pixel\-wonders)\.de/.*$ [NC]
RewriteRule ^galleries(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-me.$3 [L]
</IfModule>

Offline

 

#13 2012-06-26 22:21:25

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Re: Original Image

wow :-)

Great !

Thanks again


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

Board footer

Powered by FluxBB

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