Skip to content

suggestions #5

@nagualcode

Description

@nagualcode

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};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions