Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2017-08-03 14:25:33

landyvlad
Member
Location: Brisbane, Australia
Registered: 2017-08-01
Posts: 6

Please clarify my understanding of how albums work.

Aloha,

I've very new at this but have just installed Piwigo, created some albums, uploaded pictures and so on.
What a great system!

I have read what I believe is the relevant documentation, but before I do anything silly...

Can I clarify please how virtual albums work.

I think that all the photos are kind of just in a 'big bucket'  (no let's not call it a photo bucket LOL )
Each image file in this 'bucket' has its own unique URL, INDEPENDENT of what album it is in.

The albums in turn are essentially just convenient means of organizing those photos, but don't reflect any physical file structure.
Thus if I were to rename an album, or move a photo from one album to another, it would make no difference at all to any external links.
That is, it would not break the links on a forum, the image would still appear where it had been placed with IMG tags.

Is my understanding of this correct?  If not can you please advise specifically where I'm wrong.

Thank you so much.
Michael.


Piwigo version: 2.9.1
PHP version: ??
MySQL version: ??
Piwigo URL: http://www.landyvlad.net/piwigo

Offline

 

#2 2017-08-03 14:34:14

ddtddt
Piwigo Team
Location: Quetigny - France
Registered: 2007-07-27
Posts: 6671

Re: Please clarify my understanding of how albums work.

Hi :-)

landyvlad wrote:

I think that all the photos are kind of just in a 'big bucket'  (no let's not call it a photo bucket LOL )
Each image file in this 'bucket' has its own unique URL, INDEPENDENT of what album it is in.

The albums in turn are essentially just convenient means of organizing those photos, but don't reflect any physical file structure.

Yes

landyvlad wrote:

Thus if I were to rename an album, or move a photo from one album to another, it would make no difference at all to any external links.
That is, it would not break the links on a forum, the image would still appear where it had been placed with IMG tags.

Is my understanding of this correct?  If not can you please advise specifically where I'm wrong.

If you give direct linl picture is ok

If you give URL vhen you move photo URLchange


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2017-08-04 10:04:11

eliz82
Member
Location: Romania
Registered: 2016-04-27
Posts: 151
Website

Re: Please clarify my understanding of how albums work.

landyvlad wrote:

Each image file in this 'bucket' has its own unique URL, INDEPENDENT of what album it is in.

if you are referring to virtual albums
A) if you are referring to the jpg image file ... then yes, URL link to the jpg image will be stable, no mater if you move the photo to another album ... the album is virtual (only some data in the database). the location of the physical image on the webserver remains the same.
ex. http://demo.piwigo.com/_datas/v/8/z/v8z … 7c6-me.jpg

B) if you are referring to the URL address of piwigo where the image is, then they are two possibilities. do not forget that in piwigo a single image can be in multiple albums

1) you can give only the link to picture page (this will have the disadvantage that the visitors cannot see the next/previous pictures in the album you want) ... but the link will be stable if you move the picture from the album to another album
ex. http://www.modusoptimus.com/pwg/picture/R20160722_7913

2) you can give the link to picture page+album ... visitors can navigate to the next/previous picture from the album you give but if you move the image to another album. but if you will move the picture to another album all past links will be broken.
ex. http://www.modusoptimus.com/pwg/picture … mals/birds
ex. http://www.modusoptimus.com/pwg/picture … erica-2016

Offline

 

#4 2017-08-05 15:49:27

landyvlad
Member
Location: Brisbane, Australia
Registered: 2017-08-01
Posts: 6

Re: Please clarify my understanding of how albums work.

Thanks.

So let's say I want to post a photo on  a forum.'

I go to the album, right click and select 'copy image address'  (using Google Chrome in this example)

I come to a forum and paste in the URL as follows  http://www.landyvlad.net/piwigo/picture … ategory/14

put it in IMG tags and...

http://www.landyvlad.net/piwigo/picture.php?/5/category/14

nothing. But the hyperlink takes to to the actual photo page in the gallery, which is obviously NOT what I want.

If I right click on the photo and say open in new tab, that gives me the URL http://www.landyvlad.net/piwigo/_data/i … 6b6-me.jpg

which is the absolute address, that won't change as long as I leave the PHYSICAL file structure alone (and I will)

whacking that in IMG tags gives us a crazy puppy

http://www.landyvlad.net/piwigo/_data/i/upload/2017/08/01/20170801222214-0dfe26b6-me.jpg


So the question is - How do I (easily) grab some code for posting in a forum, that will link me to that photo?  (ie give me that link above,).
Even better if it can automatically wrap IMG tags around it and copy it to the clipboard !

Last edited by landyvlad (2017-08-05 15:55:52)

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact