Skip to content

Commit 625031d

Browse files
authored
fix the cover of rgb2gray demo (#147)
1 parent bf9e4bd commit 625031d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/examples/color_channels/rgb_grayscale.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ---
22
# title: RGB to GrayScale
3-
# cover: assets/rgb_grayscale.png
3+
# cover: assets/rgb_grayscale.gif
44
# ---
55

66
# This example illustrates RGB to Grayscale Conversion
@@ -19,4 +19,5 @@ mosaicview(rgb_image, gray_image; nrow = 1)
1919
# [Rec. ITU-R BT.601-7](https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.601-7-201103-I!!PDF-E.pdf) rounding off to 3 decimal places
2020
# `0.299 * R + 0.587 * G + 0.114 * B`
2121

22-
save("assets/rgb_grayscale.png", gray_image) #src
22+
using ImageMagick #src
23+
ImageMagick.save("assets/rgb_grayscale.gif", cat(rgb_image, RGB.(gray_image); dims=3); fps=1) #src

0 commit comments

Comments
 (0)