-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hello, Hex007!
Thanks for improving eop.
This is the best cmd line image viewer for the pi.
There are 2 suggestions that are beyond my capabilities, wish you could help.
1 - Make image "best fit" to screen.
As of now eop stretch the image to fill the layer, i believe it should fit to screen, and keep image proportions. Omxiv (https://github.com/HaarigerHarald/omxiv) does this quite well.
2 - Detect image type.
Also, form omxiv, detect image type, without relying on extension.
static const char magNumJpeg[] = {0xff, 0xd8, 0xff}; static const char magNumPng[] = {0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1A, 0x0A}; static const char magNumBmp[] = {0x42, 0x4d}; static const char magNumGif[] = {0x47, 0x49, 0x46, 0x38}; static const char magNumTifLE[] = {0x49, 0x49, 0x2a, 0x00}; static const char magNumTifBE[] = {0x4d, 0x4d, 0x00, 0x2a};