You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want to make Electrify Chicago easy to share, adding a helpful social preview image (maybe showing the building image, the energy mix, and some rankings) would be helpful. Here's how it looks right now:
For comparison, here's how GitHub's social images look when you share this repo:
I did something like this with imagemagick for chiwho.bike, where I created a template image and then added the interview photo on top of it, but adding text or graphs is likely to be more complex.
For Chicagoans Who Bike, the command looked like:
# Resize the source image to 630px tall to match the social image, then add it onto our template# on the left hand side (-gravity West). We output to JPG (rather than WEBP) for higher# compatibility, since social media images can be ingested by back-end services
convert ./imgs/cwb-social-template.png $prim_img_path -resize x630 -composite -quality 80 -gravity West ./imgs/interviews/$1/$1-social.jpg
Where $prim_img_path was the image I was using, and cwb-social-template.png was the underlying base image. This just combines two images, but ImageMagick also has tools to write text.
The text was updated successfully, but these errors were encountered:
Hypothetically we could do this via a page on the website and then export screenshots, which would let us do more complex stuff via CSS, and could let us import our existing graphs. Might be a good option if Image Magick has been pretty complex!
If we want to make Electrify Chicago easy to share, adding a helpful social preview image (maybe showing the building image, the energy mix, and some rankings) would be helpful. Here's how it looks right now:
For comparison, here's how GitHub's social images look when you share this repo:
I did something like this with imagemagick for chiwho.bike, where I created a template image and then added the interview photo on top of it, but adding text or graphs is likely to be more complex.
For Chicagoans Who Bike, the command looked like:
Where
$prim_img_path
was the image I was using, andcwb-social-template.png
was the underlying base image. This just combines two images, but ImageMagick also has tools to write text.The text was updated successfully, but these errors were encountered: