Skip to content
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

Added AllskyNotifications.psd #565

Closed
wants to merge 1 commit into from
Closed

Conversation

EricClaeys
Copy link
Collaborator

This is the file used to create all the notification images.

This is the file used to create all the notification images.
@linuxkidd
Copy link
Collaborator

I'm not sure if .PSD is a raster or vector type, but if it's vector, I'd prefer having it in SVG format for better open standards support and ease of use.

@ckuethe
Copy link
Collaborator

ckuethe commented Oct 5, 2021

I don't have photoshop. An alternative approach would be to include a shell script that could regenerate these images using imagemagick (which we depend on anyway).

@ckuethe
Copy link
Collaborator

ckuethe commented Oct 5, 2021

By way of example, this creates an 800x800 image in file called allsky_not_running.png which contains 72pt red helvetica text on a 50% gray background (with a 2pt black outline to make it monochrome and colorblind-friendlier) reading "Allsky Not Running".

We could create similar clauses or a loop to generate the other images.

#!/bin/bash

MSG="Allsky Not Running"
OUT="$(echo ${MSG,,} | tr ' ' '_').png"
convert \
	-background gray \
	-fill red \
	-strokewidth 2 \
	-stroke black \
	-size 800x800 \
	-font Helvetica \
	-pointsize 72 \
	-gravity center \
	label:"${MSG}" \
	$OUT

eog $OUT

PSD is a complex binary format, like GIMPs xsd. Very rich and expressive, but not a file that is easily viewed with the most basic of tools.

Copy link
Collaborator

@ckuethe ckuethe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I like the idea of having the source of the notification images, I'd like to see it in an open standard format that can be manipulated with free software tools (ideally on low spec machines).

SVG would work and inkscape is FOSS. Using ImageMagick commands to basically compile the image from text would also work. Allsky's image processing pipeline already requires ImageMagick so everyone running allsky already has all the tools they need to regenerate or customize these images.

@EricClaeys EricClaeys self-assigned this Oct 5, 2021
@EricClaeys
Copy link
Collaborator Author

Thanks for the comments guys.
I like the idea of creating the images via "convert". That allows anyone to modify them - Photoshop not needed.
I'll write up a shell script. One possibility is to not distribute the images but have the shell script create them at installation time.
How can I delete this PR? I'll create a new one. It will create files identical to the existing ones so we don't have to change any scripts.

I will also create a PR and related script to create the "No thumbnail" used by the website.

The images are 960x720, 72 pixels/inch, 128 pt Arial Regular text centered vertically and horizontally with a 2 px stroke.

Allsky software is not running: text: #ff0000, stroke: #00000000, background: #404040, filename: NotRunning.*

ERROR: See log file for information /var/log/allsky.log: /var/log/allsky.log is 72 pt. Both are text: #ff0000, stroke: #00000000, background: #404040, filename: Error.*

Camera is off during the day: text: #ffff4a, stroke: #00000000, background: #c0c0c0, filename: CameraOffDuringDay.*

Camera is taking dark frames: text: #00ff00, stroke: #ffffff, background: #000000, filename: DarkFrames.*

Allsky software is starting up: text: #00ff00, stroke: #00000000, background: #404040, filename: StartingUp.*

@linuxkidd
Copy link
Collaborator

@EricClaeys -- no delete of a PR, but you can 'Close with comment'... which doesn't merge the change.

@EricClaeys
Copy link
Collaborator Author

We agreed NOT to upload the .psd file initially used to create the .jpg and .png files; instead, we'll create a shell script to create the files using the "convert" program.

@EricClaeys EricClaeys closed this Oct 5, 2021
@ckuethe ckuethe deleted the AllskyNotifications.psd branch October 5, 2021 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants