diff --git a/examples/confirm_exit/screenshot.png b/examples/confirm_exit/screenshot.png index 062cd88ed..931f17c98 100644 Binary files a/examples/confirm_exit/screenshot.png and b/examples/confirm_exit/screenshot.png differ diff --git a/examples/custom_3d_glow/screenshot.png b/examples/custom_3d_glow/screenshot.png index cb33155b2..cea68ab36 100644 Binary files a/examples/custom_3d_glow/screenshot.png and b/examples/custom_3d_glow/screenshot.png differ diff --git a/examples/custom_font/screenshot.png b/examples/custom_font/screenshot.png index abf60ca15..97132d02c 100644 Binary files a/examples/custom_font/screenshot.png and b/examples/custom_font/screenshot.png differ diff --git a/examples/custom_font_style/screenshot.png b/examples/custom_font_style/screenshot.png index 5ab1a298d..0a8cdf08e 100644 Binary files a/examples/custom_font_style/screenshot.png and b/examples/custom_font_style/screenshot.png differ diff --git a/examples/custom_window_frame/screenshot.png b/examples/custom_window_frame/screenshot.png index 50b5dd28b..5fe25c57d 100644 Binary files a/examples/custom_window_frame/screenshot.png and b/examples/custom_window_frame/screenshot.png differ diff --git a/examples/file_dialog/screenshot.png b/examples/file_dialog/screenshot.png index f2b59d126..263a8521c 100644 Binary files a/examples/file_dialog/screenshot.png and b/examples/file_dialog/screenshot.png differ diff --git a/examples/hello_world/screenshot.png b/examples/hello_world/screenshot.png index 09c7af2fa..450f6eead 100644 Binary files a/examples/hello_world/screenshot.png and b/examples/hello_world/screenshot.png differ diff --git a/examples/hello_world_simple/screenshot.png b/examples/hello_world_simple/screenshot.png index 765339d40..450f6eead 100644 Binary files a/examples/hello_world_simple/screenshot.png and b/examples/hello_world_simple/screenshot.png differ diff --git a/examples/keyboard_events/screenshot.png b/examples/keyboard_events/screenshot.png index b8ab11720..e144d870f 100644 Binary files a/examples/keyboard_events/screenshot.png and b/examples/keyboard_events/screenshot.png differ diff --git a/examples/puffin_profiler/screenshot.png b/examples/puffin_profiler/screenshot.png index fe974d851..a6939706e 100644 Binary files a/examples/puffin_profiler/screenshot.png and b/examples/puffin_profiler/screenshot.png differ diff --git a/examples/retained_image/screenshot.png b/examples/retained_image/screenshot.png index c605558da..9e2234e48 100644 Binary files a/examples/retained_image/screenshot.png and b/examples/retained_image/screenshot.png differ diff --git a/examples/serial_windows/screenshot.png b/examples/serial_windows/screenshot.png index 1f7732c09..6926765b0 100644 Binary files a/examples/serial_windows/screenshot.png and b/examples/serial_windows/screenshot.png differ diff --git a/examples/svg/screenshot.png b/examples/svg/screenshot.png index 7b3d6222c..1a9664a82 100644 Binary files a/examples/svg/screenshot.png and b/examples/svg/screenshot.png differ diff --git a/examples/user_attention/screenshot.png b/examples/user_attention/screenshot.png index 3387d3135..d7ee61cce 100644 Binary files a/examples/user_attention/screenshot.png and b/examples/user_attention/screenshot.png differ diff --git a/scripts/generate_example_screenshots.sh b/scripts/generate_example_screenshots.sh index 39550a0d6..4ea23da2b 100755 --- a/scripts/generate_example_screenshots.sh +++ b/scripts/generate_example_screenshots.sh @@ -7,7 +7,11 @@ cd "$script_path/.." cd examples for EXAMPLE_NAME in $(ls -1d */ | sed 's/\/$//'); do - if [ ${EXAMPLE_NAME} != "hello_world_par" ]; then - EFRAME_SCREENSHOT_TO="$EXAMPLE_NAME/screenshot.png" cargo run -p $EXAMPLE_NAME + if [ ${EXAMPLE_NAME} != "hello_world_par" ] && [ ${EXAMPLE_NAME} != "screenshot" ]; then + echo "" + echo "Running ${EXAMPLE_NAME}…" + EFRAME_SCREENSHOT_TO="temp.png" cargo run -p ${EXAMPLE_NAME} + pngcrush -rem allb -brute -reduce temp.png "${EXAMPLE_NAME}/screenshot.png" + rm temp.png fi done