Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions scripts/generate-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ generate_preview_gif() {

# If so, regenerate the preview GIF.

convert -background white \
-alpha remove \
-delay 30 \
magick -delay 30 \
-loop 0 \
$2 \
"$3" \
Expand Down Expand Up @@ -93,7 +91,7 @@ generate_different_sized_images() {

for imageSize in "${IMAGE_SIZES[@]}"; do

convert "$path/$basename.png" \
magick "$path/$basename.png" \
$CONVERT_BASE_OPTIONS \
-resize "$imageSize" \
"$path/${basename}_$imageSize.png" \
Expand Down Expand Up @@ -136,7 +134,7 @@ generate_group_image() {
tmp+=("src/$i/$i.png")
done

convert "${tmp[@]}" \
magick "${tmp[@]}" \
$CONVERT_BASE_OPTIONS \
-resize 512x512 \
-extent 562x562 \
Expand All @@ -159,11 +157,11 @@ main() {

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Check if ImageMagick's `convert`
# Check if ImageMagick's `magick`
# command-line tool is available.

if ! cmd_exists "convert"; then
print_error "Please install ImageMagick's 'convert' command-line tool!"
if ! cmd_exists "magick"; then
print_error "Please install ImageMagick's 'magick' command-line tool!"
return 1
fi

Expand Down
1 change: 1 addition & 0 deletions src/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"python": "python",
"r": "r",
"ruby": "ruby",
"rust": "rust",
"swift": "swift",
"typescript": "typescript"
}
Binary file added src/rust-blk/rust-blk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust-blk/rust-blk_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust-blk/rust-blk_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust-blk/rust-blk_24x24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust-blk/rust-blk_256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust-blk/rust-blk_32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust-blk/rust-blk_48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust-blk/rust-blk_512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust-blk/rust-blk_64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/rust-blk/rust.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust/rust.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust/rust_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust/rust_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust/rust_24x24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust/rust_256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust/rust_32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust/rust_48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust/rust_512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rust/rust_64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rustacean/rustacean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions src/rustacean/rustacean.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rustacean/rustacean_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rustacean/rustacean_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rustacean/rustacean_24x24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rustacean/rustacean_256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/rustacean/rustacean_32x32.png
Binary file added src/rustacean/rustacean_48x48.png
Binary file added src/rustacean/rustacean_512x512.png
Binary file added src/rustacean/rustacean_64x64.png