SmilyOrg / photofield

Experimental fast photo viewer.
MIT License
410 stars 7 forks source link

Support embedded jpeg thumbs + fix debug modes #5

Closed SmilyOrg closed 2 years ago

SmilyOrg commented 2 years ago

Embedded JPEG thumbnails

Embedded JPEG thumbnails are now supported. Extracting them is slower than loading pregenerated thumbnails already on disk, but way faster than loading the original, so it's a nice middle ground if you don't already have thumbnails. Photofield8

Debug Modes

Additionally, the two debug modes supported by the API are now accessible again. They exist to more easily debug how and when the thumbnails are being used.

Debug Overdraw

Shows how close to "perfect" is the thumbnail / image being loaded. More red 👉 too high resolution / wasted loaded pixels / slow loading More blue 👉 not enough resolution / blurry display

Using only embedded JPEG thumbnails shows that when the original images has to be used, it is way too high of a resolution for the currently displayed size, so it's slow.

https://user-images.githubusercontent.com/1451391/144292927-0e5e3d3b-84a0-4d36-bb83-7a8a8f7cd8d6.mp4

Debug Thumbnails

Shows the resolution of the thumbnail / image being used, the "distance" from the ideal resolution for the currently displayed size and the name of the thumbnail (or original for the original photo).

https://user-images.githubusercontent.com/1451391/144292940-f298474f-2924-42b2-83a0-b5646b00d186.mp4