imagegen

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 75ef42ee7176c6f6bf2b11523574f1fc44f96d31
Author: Joël Lupien (Jojolepro) <jojolepro@jojolepro.com>
Date:   Tue, 25 Aug 2020 13:18:06 -0400

init

Diffstat:
A8cdf1a35.jpg | 0
Aarch.png | 0
Aarch_btw_heresy.jpg | 0
Agenerate_deepfried.sh | 4++++
Agenerate_heresy.sh | 4++++
Agenerated.jpg | 0
Aheader.png | 0
Aheresy.jpg | 0
Amepapemaker.sh | 28++++++++++++++++++++++++++++
Apatreon_header.sh | 2++
Atemp_logo.jpg | 0
Atemp_logo.png | 0
Atest.jpg | 0
Atmp.jpg | 13+++++++++++++
Aumaru.jpg | 0
15 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/8cdf1a35.jpg b/8cdf1a35.jpg Binary files differ. diff --git a/arch.png b/arch.png Binary files differ. diff --git a/arch_btw_heresy.jpg b/arch_btw_heresy.jpg Binary files differ. diff --git a/generate_deepfried.sh b/generate_deepfried.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +magick "$1" -equalize -posterize 2 -implode 0.2 generated.jpg + diff --git a/generate_heresy.sh b/generate_heresy.sh @@ -0,0 +1,4 @@ +#!/usr/bin/bash + +magick heresy.jpg -gravity South -pointsize 40 -fill white -annotate +0+30 "$1" generated.jpg + diff --git a/generated.jpg b/generated.jpg Binary files differ. diff --git a/header.png b/header.png Binary files differ. diff --git a/heresy.jpg b/heresy.jpg Binary files differ. diff --git a/mepapemaker.sh b/mepapemaker.sh @@ -0,0 +1,28 @@ +#!/usr/bin/bash + +pape=$1 + +# Get the width of the wallpaper +height=$(magick convert "$pape" -format "%h" info:) +width=$(magick convert "$pape" -format "%w" info:) + +# Calculate appropriate height for logo on the wallpaper +logo_height=$(($height*9/16)) + +# Generate Mask +convert "./arch.png" -gravity center -resize $logo_height -background white -extent "${width}x${height}" -flatten "temp_logo.png" + +# Generate Wallpaper +outfile_name=$(basename "$pape") + +convert "$pape" -write-mask "temp_logo.png" -gravity center \ + -blur 0x30 \ + -attenuate 0.3 +noise Laplacian\ + -evaluate Multiply 1.3 \ + "arch_btw_$outfile_name" + +# Delete temporary file +#rm "temp_logo.png" + +# TODO: imagemagick giving colorspace warning +# TODO: Use SVG instead of png? diff --git a/patreon_header.sh b/patreon_header.sh @@ -0,0 +1,2 @@ +#!/bin/sh +magick -size 1600x400 radial-gradient:red-blue -radial-blur 5 header.png diff --git a/temp_logo.jpg b/temp_logo.jpg Binary files differ. diff --git a/temp_logo.png b/temp_logo.png Binary files differ. diff --git a/test.jpg b/test.jpg Binary files differ. diff --git a/tmp.jpg b/tmp.jpg @@ -0,0 +1,13 @@ +--2020-03-25 22:26:23-- https://cdn.discordapp.com/attachments/344567204592746496/692559862068150292/8cdf1a35.jpg +Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' +Resolving cdn.discordapp.com (cdn.discordapp.com)... 162.159.134.233, 162.159.133.233, 162.159.130.233, ... +Connecting to cdn.discordapp.com (cdn.discordapp.com)|162.159.134.233|:443... connected. +HTTP request sent, awaiting response... 200 OK +Length: 68271 (67K) [image/jpeg] +Saving to: ‘8cdf1a35.jpg’ + + 0K .......... .......... .......... .......... .......... 74% 1012K 0s + 50K .......... ...... 100% 580K=0.08s + +2020-03-25 22:26:24 (853 KB/s) - ‘8cdf1a35.jpg’ saved [68271/68271] + diff --git a/umaru.jpg b/umaru.jpg Binary files differ.