fibelatti / photo-widget

Photo Widget is as simple as it can be: an Android home screen widget to display a photo or collection of photos. It is a free, no-ads, open source alternative for people who want to customize their home screen with their favorite photos.
Apache License 2.0
102 stars 7 forks source link

BUG: Picture resolution drops when added as widget #93

Closed zun43d closed 3 weeks ago

zun43d commented 1 month ago

I don't really know if that's a bug or not. Basically I made a class routine and put that picture as widget. Notice the image had a lot of small text. Normally the image is pretty clear. But after adding as widget I can't read text.

I am attaching the original picture and a screenshot of home screen after adding as widget.

Aspect ratio: Tall Screenshot of widget Original picture

SeaItSelf commented 1 month ago

I don't know how widget itself might be causing the issue but I suggest some work arounds.

you can make the text bigger in the table you created or there is a option to enlarge the photo when you click on it

hope this helps

fibelatti commented 1 month ago

Hi @zun43d, thanks for reporting the issue! Some users had already reported loss in quality but your example definitely made my investigation easier. Without getting too technical, any image displayed on a widget must be loaded into memory first (RAM) and there's a limit to how much memory an image can use. To stay below that limit, the app downscales the image which in turn leads to quality loss (@SeaItSelf thanks for chiming in, I hope this explanation clears out how the widget causes it!)

I'm happy to say that I've made some improvements to this and used your example to verify. The image is a lot clearer after the changes, which should be released in the next couple days.

zun43d commented 1 month ago

Thank you so much @fibelatti for adjusting the issue. Just this was the only problem I was facing. Also I did read the previous issue that was posted about picture quality getting reduced and thought my scenario was slightly different. Seems like it helped you to understand the cause.

I'm really thankful to you for this app. There are no alternatives with this many features. All the photo widget apps are loaded with ads! Eagerly waiting for the next update! 😅

fibelatti commented 3 weeks ago

Hi @zun43d, thanks for waiting patiently. The fix was included in version 1.13.2 which was released to Google Play today, and should be available in the next few hours.

I'm closing this issue as resolved, but feel free to open it again in case the issue persists.