Announcement

  •  » Miscellaneous
  •  » Best Practices Question About Using Piwigo As a Image Back-Up

#1 2019-04-26 21:13:16

kc27
Member
2014-02-25
77

Best Practices Question About Using Piwigo As a Image Back-Up

Hello

I will be using Piwigo as a gallery, and also a way to back up the original full resolution versions of my images.

The FTP method of uploading files seems preferable to getting the images in to the gallery, because I can replicate my local folder structure on the web server. If I ever need to recover the images, they will be easily available to batch download via FTP with the naming and folder organization intact.

Are there benefits to using the Piwigo admin panel web upload method that I am missing?


Piwigo 2.9.5
Operating system: Linux
PHP: 7.1.27
MySQL: 5.5.5-10.2.23-MariaDB-cll-lve
Graphics Library: External ImageMagick 6.7.8-9

Last edited by kc27 (2019-04-26 21:15:13)

Offline

 

#2 2019-04-26 21:22:45

executive
Member
2017-08-16
1214

Re: Best Practices Question About Using Piwigo As a Image Back-Up

Offline

 

#3 2019-04-26 21:43:35

kc27
Member
2014-02-25
77

Re: Best Practices Question About Using Piwigo As a Image Back-Up

I had read that document prior to posting. Is there a way to pull the photos out of Piwigo in an organized fashion if you have used the web upload? The only way I could see keeping them organized would be downloading them individually from the Piwigo gallery and then grouping and organizing them into a meaningful folder structure.

Offline

 

#4 2019-04-26 21:47:21

executive
Member
2017-08-16
1214

Re: Best Practices Question About Using Piwigo As a Image Back-Up

Offline

 

#5 2019-04-26 21:54:00

kc27
Member
2014-02-25
77

Re: Best Practices Question About Using Piwigo As a Image Back-Up

Thank you very much. I just did a test with Batch Downloader, and it is a perfect solution.

Do the images created via the web upload page (with image resizing enabled) load faster for the viewer than images in a gallery created from full resolution images via the FTP and synchronization method?

Offline

 

#6 2019-04-26 22:37:37

executive
Member
2017-08-16
1214

Re: Best Practices Question About Using Piwigo As a Image Back-Up

In theory no, because Piwigo creates its own cache, but I've never tested it.

Offline

 

#7 2019-04-26 23:13:18

kc27
Member
2014-02-25
77

Re: Best Practices Question About Using Piwigo As a Image Back-Up

Thanks for the info. I have a Piwigo album where I resized the photos down to 1280 pixels width or height, and optimized the files too, to make the file sizes small. That album loads quick and displays the images quickly.

For the gallery I am currently building, I want to make the original size images available, to whomever might want to download them. I have noticed a one or two second lag before an image displays, and these images average mostly 900 kb with a few 1200 kb. As I progress in building the gallery, and start loading images that were taken with better cameras, the image sizes will increase and average 5 to 7 mb. I hope the load time does not increase too much with those larger file sizes.

The full resolution image gallery is probably pushing Piwigo to act as a digital asset management system vs an online photo gallery for which it was designed. I am starting to think a solution like Pimcore might be more appropriate for an archival type photo gallery.

Last edited by kc27 (2019-04-26 23:18:51)

Offline

 

#8 2019-04-27 00:10:36

executive
Member
2017-08-16
1214

Re: Best Practices Question About Using Piwigo As a Image Back-Up

You might be right in terms of features you're looking for, but you can still use Piwigo for sharing purposes.

I do know Piwigo was designed to handle a large volume of files (I think the Piwigo.com gallery service hosts hundreds of thousands of images), so maybe others here can give you some tips for optimization.

Last edited by executive (2019-04-27 00:12:57)

Offline

 

#9 2019-04-27 01:52:05

kc27
Member
2014-02-25
77

Re: Best Practices Question About Using Piwigo As a Image Back-Up

I just tested with some 3 to 4 mb size image files, and uploading via the web tool was extremely slow. Then, displaying the photos in Piwigo took about 4 seconds for the photo to load. The gallery I am making will be years of family photos. I was hoping to use Piwigo as a way to share them both online, and have the corresponding full resolution files downloaded from Piwigo to anyone who wanted them, vs them asking me for the full resolution file.

It is compromise time. I either upload resized and optimized photos to Piwigo and treat it as a web only resource, or I go with a different application like Pimcore. I did test the same files in Pimcore, and they uploaded much quicker, and displayed without lag between the images. It was the same webhost for Piwigo and Pimcore.

I will pose this question in the troubleshooting area, just in case someone knows of a way to make Piwigo work with large file sizes.

Offline

 

#10 2019-04-27 02:24:08

executive
Member
2017-08-16
1214

Re: Best Practices Question About Using Piwigo As a Image Back-Up

Keep in mind that the first time you view an image may take longer as Piwigo generates some of the files in the background, and subsequent visits will be quicker.


I just tried uploading 10x 5MB images and it took 1m26s
There are PHP options you can tweak.

https://piwigo.org/forum/viewtopic.php? … 71#p173171

Offline

 

#11 2019-04-27 06:26:25

kc27
Member
2014-02-25
77

Re: Best Practices Question About Using Piwigo As a Image Back-Up

You are right. I cleared my browser cache and went back to my gallery. The 3 - 4 mb files are loading with no delay. Thanks for pointing this out.

Your upload speed is great. I am going to follow up on the PHP changes to see if I can get closer to your upload time. What upload speed do you get from your internet provider? My service is 200 Mbps down and 10 Mbps up, and I am doing this on a wired connection.

Offline

 

#12 2019-04-27 08:20:48

executive
Member
2017-08-16
1214

Re: Best Practices Question About Using Piwigo As a Image Back-Up

It varies throughout the day. Right now I have 136Mbps (17MB/s) up on wifi.

I did not make any tweaks to my PHP.

Offline

 

#13 2019-04-27 15:40:19

kc27
Member
2014-02-25
77

Re: Best Practices Question About Using Piwigo As a Image Back-Up

My true upload speed as test by a few of the speed test sites, and 7 to 8 Mbps came out to be the average speed, so your upload speed is about twice of what I have.

The bulk of my images are on an Intel Core 2 Quad Q8400 2.66GHz PC with 8 GB of ram running Windows 7 64 bit. I tested uploading the same set of files from a newer i7 3770 PC with 32 GB of ram running Windows 10 64 bit. That was dramatically faster. Both computers have wired connections. I don't know if the faster processor and additional ram affect upload speed.

I did modify the PHP.ini file to eliminate this message that I was getting in Piwigo's upload screen.

"In your php.ini file, the upload_max_filesize (128MB) is bigger than post_max_size (32MB), you should change this setting"

Last edited by kc27 (2019-04-27 15:40:49)

Offline

 

#14 2019-04-27 20:25:58

executive
Member
2017-08-16
1214

Re: Best Practices Question About Using Piwigo As a Image Back-Up

kc27 wrote:

8 Mbps  ... your upload speed is about twice of what I have.

I think you are mixing up your units

Mbps = Mega bits per second
MB/s = Mega bytes per second

There are 8 bits in a byte.

Last edited by executive (2019-04-27 20:26:11)

Offline

 

#15 2019-04-28 01:35:07

kc27
Member
2014-02-25
77

Re: Best Practices Question About Using Piwigo As a Image Back-Up

Sorry, I misread your figures as 136Mbps down/17Mbps up. I like the idea of being able to associate images with different albums from within the Piwigo client which you get with loading via the web, but loading via FTP is so much faster. I think it is time to gather all the images I plan on putting in the gallery, and inventory them so I know exactly how much I need to upload, and then make an decision how to proceed.

Thanks for all your assistance.

Offline

 
  •  » Miscellaneous
  •  » Best Practices Question About Using Piwigo As a Image Back-Up

Board footer

Powered by FluxBB

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