New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Go splash-image example #38

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@mk-fg

mk-fg commented Nov 29, 2015

It's a common need for embedded devices (where RPi's are used extensively) to hide all the "nasty bits" of early boot (console, X startup, X apps' init, etc) under a nice "splash screen" vendor logo, same as with bios logo or windows logo, etc.

Raspberry Pi's openvg api and this simple program makes it trivial to do by adding e.g. splash-image -bg-color ffffff mylogo.jpg at early boot (and stopping after X and all target apps start).

Maybe would be useful in this repo as an "example", so that people won't need to write their own every time?

@ajstarks

This comment has been minimized.

Show comment
Hide comment
@ajstarks

ajstarks Nov 30, 2015

Owner

Interesting.

I'd rather not shell out to imagemagick. I use github.com/disintegration/gift for resizing images (it's sufficiently fast, and uses concurrency). See github.com/ajstarks/deck/cmd/vgdeck for an example.

Also, we can use named colors for the background as well.

Owner

ajstarks commented Nov 30, 2015

Interesting.

I'd rather not shell out to imagemagick. I use github.com/disintegration/gift for resizing images (it's sufficiently fast, and uses concurrency). See github.com/ajstarks/deck/cmd/vgdeck for an example.

Also, we can use named colors for the background as well.

@mk-fg

This comment has been minimized.

Show comment
Hide comment
@mk-fg

mk-fg Nov 30, 2015

ImageMagick's convert is easier here because it doesn't add a mandatory dep - if you don't use "-resize", it works fine with only "github.com/ajstarks/openvg" and stdlib, same as other examples.

Don't think there are color names in golang's stdlib, though I guess it should be easy to embed a map of most common ones, do you think that'd be a good idea?

mk-fg commented Nov 30, 2015

ImageMagick's convert is easier here because it doesn't add a mandatory dep - if you don't use "-resize", it works fine with only "github.com/ajstarks/openvg" and stdlib, same as other examples.

Don't think there are color names in golang's stdlib, though I guess it should be easy to embed a map of most common ones, do you think that'd be a good idea?

@ajstarks

This comment has been minimized.

Show comment
Hide comment
@ajstarks

ajstarks Nov 30, 2015

Owner

my library uses color names.
having convert is yet another dependency.
I’m working on an alternative version.

On Nov 29, 2015, at 9:40 PM, Mike Kazantsev notifications@github.com wrote:

ImageMagick's convert is easier here because it doesn't add a mandatory dep - if you don't use "-resize", it works fine with only "github.com/ajstarks/openvg" and stdlib, same as other examples.

Don't think there are color names in golang's stdlib, though I guess it should be easy to embed a map of most common ones, do you think that'd be a good idea?


Reply to this email directly or view it on GitHub #38 (comment).

Owner

ajstarks commented Nov 30, 2015

my library uses color names.
having convert is yet another dependency.
I’m working on an alternative version.

On Nov 29, 2015, at 9:40 PM, Mike Kazantsev notifications@github.com wrote:

ImageMagick's convert is easier here because it doesn't add a mandatory dep - if you don't use "-resize", it works fine with only "github.com/ajstarks/openvg" and stdlib, same as other examples.

Don't think there are color names in golang's stdlib, though I guess it should be easy to embed a map of most common ones, do you think that'd be a good idea?


Reply to this email directly or view it on GitHub #38 (comment).

@mk-fg

This comment has been minimized.

Show comment
Hide comment
@mk-fg

mk-fg Nov 30, 2015

having convert is yet another dependency.

Yeah, but an optional one, emphasis there on "mandatory".

I’m working on an alternative version.

Fair enough, thanks!

mk-fg commented Nov 30, 2015

having convert is yet another dependency.

Yeah, but an optional one, emphasis there on "mandatory".

I’m working on an alternative version.

Fair enough, thanks!

@mk-fg mk-fg closed this Nov 30, 2015

@ajstarks

This comment has been minimized.

Show comment
Hide comment
@mk-fg

This comment has been minimized.

Show comment
Hide comment
@mk-fg

mk-fg commented Nov 30, 2015

Thanks!

@ajstarks

This comment has been minimized.

Show comment
Hide comment
@ajstarks

ajstarks Dec 4, 2015

Owner

Updated to include text annotation

Owner

ajstarks commented Dec 4, 2015

Updated to include text annotation

@ajstarks

This comment has been minimized.

Show comment
Hide comment
@ajstarks

ajstarks Dec 11, 2015

Owner

Updated to include arbitrary positioning

Owner

ajstarks commented Dec 11, 2015

Updated to include arbitrary positioning

@simonvanderveldt simonvanderveldt referenced this pull request Jan 25, 2018

Closed

oled boot splash #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment