Piwigo / piwigo-bootstrap-darkroom

A mobile-ready and feature-rich theme for Piwigo photo gallery, based on Bootstrap 4
Apache License 2.0
83 stars 40 forks source link

Thumbnail Images come up as errors #269

Open jrow3 opened 3 years ago

jrow3 commented 3 years ago

Currently all my newly uploaded thumbnail images come up as errors. I've trouble shot the issue on the piwigo forums, but appear to be having this issue only with this theme. Not sure if this is a piwigo error or a darkroom error but since I can't find a solution on the piwigo end figured I'd try here as well.

Piwigo Thread: https://piwigo.org/forum/viewtopic.php?pid=178730#p178730

Site with Errors: https://djrow3.com/photos/index.php?/category/autocross

stuba commented 2 years ago

How have did you upload images? I have same issue for images I have uploaded via API using add and add_chunks methods. Images I have uploaded via browser works. I try to have a look what is the difference here. For any other template there is no issues.

Hope I do get this fixed. Now I do well suited setup for my personal photos. I manage everything using Digikam locally. Files are synced to my personal Nextcloud so I can easily check for example years I do want to sync to my local computer and keep the rest in my cloud. From Nextcloud I sync every jpg to Piwigo. I write Piwigo's Image ID into my jpg so If I move images around I do not need sync full image collection from early 2005.

Hope I can sort this nasty problem so I can easily let others in my family browse all images without having any problems them to make changes to originals. This did seem most up2date template so far.

stuba commented 2 years ago

And yes it seems that addChunk and uploadAsync API methods does not work correctly. I changed to upload and now it works.

Piwigo tools/ws.htm API description does not seem to be too much up to date. I did have a look at the code and it seems to support uploading data as chunks.

So now it seems to work. I have now idea which does have the problem this theme or Piwigo. I kind of would asume that if there is multiple ways to upload image end result should be the same. Maybe just Piwigo documentation would need some update.

jangrewe commented 2 years ago

I have the same issue and need to reload the page once for the image to show up. I add photos/albums by putting them straight into the filesystem and running an album sync.

This issue happens for every generated image (and they DO get generated), e.g. if i switch the resolution and a difference file would be requested. And yes, it only happens with theme - which is the only "nice" theme out there, unfortunately. ;-)