Piwigo / piwigo-flutter-app

Piwigo mobile application for Android
GNU General Public License v2.0
82 stars 26 forks source link

No thumbnails in Piwigo NG 2.2.1 #168

Open Nologist opened 1 year ago

Nologist commented 1 year ago

Hi again,

sorry to report another bug, but in the current version available on Google Play there's an issue with the Thumbnail presentation. This feature seems to be broken since 2.2.1. Right after the update, the Thumbnails of newly uploaded files appeared to be missing and had a default icon like that: Screenshot_20230820_124011 I haven't used the app's (auto-)upload feature yet, so it's not related to that. When I cleared the app's cache, almost all of the Thumbnails turned looking like that and only a few ones have been regenerated. I've checked the Piwigo Web App to see if there's a problem with the backend. Though, everything is fine there. As your latest change notes refer to Thumbnails, I assume that the fix might have corrupted anything else.

Best regards Sven

remi-martin commented 1 year ago

Fixed in 2.2.2

remi-martin commented 1 year ago

Howerver, it would be great to have the url of a Piwigo with this issue in order to understand why the image urls when unreadable.

Nologist commented 1 year ago

My Piwigo isn't exposed to the internet, so I'm afraid I cannot give you direct access. However, here's a partial response of my piwigo's "getImages" method. I guess that's what you need, isn't it?

{
  "is_favorite": false,
  "id": 12654,
  "width": 4000,
  "height": 3000,
  "hit": 1,
  "file": "20230820_173903.jpg",
  "name": "20230820 173903",
  "comment": null,
  "date_creation": "2023-08-20 17:39:03",
  "date_available": "2023-08-20 16:30:03",
  "page_url": "http://piwigo.local/picture.php?/38249",
  "element_url": "http://piwigo.local/upload/2023/08/20/20230820163003-4ba522ea.jpg",
  "derivatives": {
    "square": {
      "url": "http://piwigo.local/_data/i/upload/2023/08/20/20230820163003-4ba522ea-sq.jpg",
      "width": 120,
      "height": 120
    },
    "thumb": {
      "url": "http://piwigo.local/_data/i/upload/2023/08/20/20230820163003-4ba522ea-th.jpg",
      "width": 144,
      "height": 108
    },
    "2small": {
      "url": "http://piwigo.local/i.php?/upload/2023/08/20/20230820163003-4ba522ea-2s.jpg",
      "width": 240,
      "height": 180
    },
    "xsmall": {
      "url": "http://piwigo.local/i.php?/upload/2023/08/20/20230820163003-4ba522ea-xs.jpg",
      "width": 432,
      "height": 324
    },
    "small": {
      "url": "http://piwigo.local/_data/i/upload/2023/08/20/20230820163003-4ba522ea-sm.jpg",
      "width": 576,
      "height": 432
    },
    "medium": {
      "url": "http://piwigo.local/i.php?/upload/2023/08/20/20230820163003-4ba522ea-me.jpg",
      "width": 792,
      "height": 594
    },
    "large": {
      "url": "http://piwigo.local/i.php?/upload/2023/08/20/20230820163003-4ba522ea-la.jpg",
      "width": 1008,
      "height": 756
    },
    "xlarge": {
      "url": "http://piwigo.local/i.php?/upload/2023/08/20/20230820163003-4ba522ea-xl.jpg",
      "width": 1224,
      "height": 918
    },
    "xxlarge": {
      "url": "http://piwigo.local/i.php?/upload/2023/08/20/20230820163003-4ba522ea-xx.jpg",
      "width": 1656,
      "height": 1242
    }
  },
  "categories": [
    {
      "id": 28,
      "url": "http://piwigo.local/index.php?/category/28",
      "page_url": "http://piwigo.local/picture.php?/38249/category/28"
    }
  ]
}
Nologist commented 1 year ago

Did it help? Do you need any more infos?

LintyDev commented 2 months ago

Hello,

We have released a new version of PiwigoNG, can you please update to see if the problem is still present or not.

Have a nice day!