Piwigo.org

You are not logged in. (Register / Login)

Announcement

Post a reply

Write your message and submit

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

deserteagle
2012-07-02 05:17:47

I figured out it.

if you pre generate the thumbnail or othersize (for example websize) in advance and upload to _data\i\galleries, you should make sure those files have a newer date than the original image it self, otherwise piwigo will regenerate it again.

deserteagle
2012-06-28 12:56:20

so, Is there a way to pre generate multisize cache photos when upload by ftp?

I use ftp because I'd like to keep the structure of album.

flop25
2012-06-27 16:45:13

ok
I'm looking at the code and i see only one thing :
      if ($mtime===false or $mtime < $params->last_mod_time)
      {
        $is_cached = false;
I notify the developer of that part

deserteagle
2012-06-27 16:36:49

I'm sure the file name and path are correctly, I tried 3 times.

I copy my thumbnail in the cache folder and keep watch it, then, I click the related album, I saw the size of thumbnail files in the cache folder changed one by one, them all thumbnail of that album show up.

Yes, it generated thumbnail again even there were.

flop25
2012-06-27 16:17:37

I didn't code that part but normally the script check if the file exists, and if not generate : so you should be able to generate locally in _data/i/...-suffix.ext and upload it. You might have not used the correct suffix, or path

deserteagle
2012-06-27 16:13:01

flop25 wrote:

well you just need to 'wait' only once. One single visitor can generate all your gallery, the others will never 'wait'.

You can generate locally, and upload if you really really want it

I generated the thumbnail and upload it to the cache folder, but it look like piwigo do not use the thumbnail I generate, it took some times to generate the thumbnail again.

I compare the difference, the thumbnail I generated with faststone had big size (about 22.5KB) using bDCT-h compression, the other one generated by piwigo had small size (5.1KB) using pDCT compression.

flop25

Can you share with me how to generate thumbnail (and also other size) and upload, I really don't want visitor to wait long time.

thanks.

plg
2012-06-22 09:40:33

deserteagle wrote:

I had 2 weeks vacation in NZ with my family, so there are more than 2000 photos in one album, so there will be near 20k photos (9 multiple size) in the cache folder.

I do agree with that. I have some users (on Piwigo.com) who add sometimes 4000 photos on the same day. That may mean 36000 files in the same folder. Not good for filesystem performances.

deserteagle
2012-06-22 09:38:49

Most time I use FTP to upload photos.

I look at the \_data\i folder(cache), I'm worry that to put different size photos in one folder maybe not a good idea.

I had 2 weeks vacation in NZ with my family, so there are more than 2000 photos in one album, so there will be near 20k photos (9 multiple size) in the cache folder.

plg
2012-06-21 16:24:19

If you add photos with the web form or with a remote tool (like iPhoto or Lightroom), the thumbnail is automatically generated at upload time, to avoid this slow loading "first time". Read more on topic:18755

flop25
2012-06-21 16:14:13

well you just need to 'wait' only once. One single visitor can generate all your gallery, the others will never 'wait'.

You can generate locally, and upload if you really really want it

deserteagle
2012-06-21 16:08:20

I tried 2.4RC3, the view experience is not good because I have to wait the thumbnail to be generated, when I change the picture size by click the multiple size button on the top left of page, I also have to wait seconds for the generate process.

I strong believe "generate on the fly" sound cool but not practicable, especially for huge number of photos.

Create the thumbnail and web size in advance will not use too many disk quote (for my case, 50G photos with web size(800x600) use about 300M), but make the page load and show photos to visitor quickly!

I strong suggest that make the thumbnail/ HD folders be able to customize are more useful compare to "generate on the fly".

deserteagle369

flop25
2012-05-14 15:46:37

Hello deserteagle369,
I suggest you to download and test the 2.4 : there is no more thumbnail and pwg_high folders
you will still be able to generate apriori the multiple size but it's much more complicated than before

deserteagle369
2012-05-14 15:41:26

Put the data and pic directory outside the install directory is a very useful and reasonable feature.

1.
like rvelices said, it's easy to upgrade

2.
make system backup size easy, my pic directory over 50G.

3.
can view the websize pics by other image view software when the piwigo are not reachable.
In my case, I use piwigo built a family gallery, so every pc in my home can easy access piwigo gallery by web, but sometimes I go out with notebook, I prefer only keep a copy of gallery directory without pwg_high directory, then I can use image view software like faststone to play slideshow of whole gallery directory in websize (800x600) with background musics.

If the pwg_high and thumbnail directory can seperate out of gallery directory that will make batch management easy. for example I use faststone to generate the whole gallery directory from my original photo directory at one time(maybe several hours), then I use synchronize and thumbnail function in piwigo to generate thumbnail at one time too(this also can be done by faststone if the thumbnail directory are out of install directory.

The multiple size function can generate different size pics, that's great if the pics in gallery are contribute by different users, but if the pics are mostly upload by admin like me, I prefer batch generate the websize and thumbnail before upload it.

plg
2011-12-29 12:13:30

rvelices wrote:

plg wrote:

So it can't work if Piwigo is installed at the root of your website, do you confirm?

I confirm unless the data directory is a symbolic link to a real directory outside the install.

Of course, but symlinks are an advanced technique, trust me ;-)

Anyway, that is not a real problem.

rvelices
2011-12-29 12:03:49

plg wrote:

So it can't work if Piwigo is installed at the root of your website, do you confirm?

I confirm unless the data directory is a symbolic link to a real directory outside the install.

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013