Skip to content

Commit

Permalink
Lossless Image Optimisation Example Images (#4189)
Browse files Browse the repository at this point in the history
* Lossless Image Optimisation Example Images

Saved 12.6 MB out of 20.8 MB. 30% per file on average.

* Update README.md

---------

Co-authored-by: Harel M <harel.mazor@gmail.com>
  • Loading branch information
coliff and HarelM committed May 30, 2024
1 parent cad7815 commit 3164f1d
Show file tree
Hide file tree
Showing 100 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ Examples are written as regular html files in `test/examples`. Each example shou
When you create a new example, you **must** make an accompanying image.

1. Run `npm run generate-images <example-file-name>`. The script will take a screenshot of the map in the example and save it to `docs/assets/examples/`.
2. Commit the image.
2. Optimize the image with [Squoosh](https://squoosh.app/) to reduce the file size. (Optiomal)
3. Commit the image.

For some examples, `npm run generate-images` does not generate an ideal image. In these cases, you can interact with the map after running the command before the screenshot is taken, or take a screenshot yourself by running the site locally with `npm start`, take a screenshot and save it in the `docs/assets/examples/` folder.

Expand Down
Binary file modified docs/assets/examples/3d-buildings.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 modified docs/assets/examples/3d-extrusion-floorplan.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 modified docs/assets/examples/3d-terrain.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 modified docs/assets/examples/add-3d-model-babylon.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 modified docs/assets/examples/add-3d-model-with-terrain.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 modified docs/assets/examples/add-3d-model.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 modified docs/assets/examples/add-a-marker.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 modified docs/assets/examples/add-deckgl-layer-using-rest-api.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 modified docs/assets/examples/add-image-animated.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 modified docs/assets/examples/add-image-generated.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 modified docs/assets/examples/add-image-missing-generated.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 modified docs/assets/examples/add-image-stretchable.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 modified docs/assets/examples/add-image.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 modified docs/assets/examples/animate-a-line.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 modified docs/assets/examples/animate-camera-around-point.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 modified docs/assets/examples/animate-images.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 modified docs/assets/examples/animate-marker.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 modified docs/assets/examples/animate-point-along-line.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 modified docs/assets/examples/animate-point-along-route.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 modified docs/assets/examples/attribution-position.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 modified docs/assets/examples/camera-animation.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 modified docs/assets/examples/canvas-source.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 modified docs/assets/examples/center-on-symbol.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/examples/change-case-of-labels.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 modified docs/assets/examples/check-for-support.png
Binary file modified docs/assets/examples/cluster-html.png
Binary file modified docs/assets/examples/cluster.png
Binary file modified docs/assets/examples/color-switcher.png
Binary file modified docs/assets/examples/contour-lines.png
Binary file modified docs/assets/examples/cooperative-gestures.png
Binary file modified docs/assets/examples/custom-marker-icons.png
Binary file modified docs/assets/examples/custom-style-layer.png
Binary file modified docs/assets/examples/data-driven-lines.png
Binary file modified docs/assets/examples/disable-rotation.png
Binary file modified docs/assets/examples/disable-scroll-zoom.png
Binary file modified docs/assets/examples/display-and-style-rich-text-labels.png
Binary file modified docs/assets/examples/drag-a-marker.png
Binary file modified docs/assets/examples/drag-a-point.png
Binary file modified docs/assets/examples/fallback-image.png
Binary file modified docs/assets/examples/fill-pattern.png
Binary file modified docs/assets/examples/filter-markers-by-input.png
Binary file modified docs/assets/examples/filter-markers.png
Binary file modified docs/assets/examples/filter-within-layer.png
Binary file modified docs/assets/examples/fitbounds.png
Binary file modified docs/assets/examples/flyto-options.png
Binary file modified docs/assets/examples/flyto.png
Binary file modified docs/assets/examples/fullscreen.png
Binary file modified docs/assets/examples/game-controls.png
Binary file modified docs/assets/examples/geocoder.png
Binary file modified docs/assets/examples/geojson-layer-in-stack.png
Binary file modified docs/assets/examples/geojson-line.png
Binary file modified docs/assets/examples/geojson-markers.png
Binary file modified docs/assets/examples/geojson-polygon.png
Binary file modified docs/assets/examples/heatmap-layer.png
Binary file modified docs/assets/examples/hover-styles.png
Binary file modified docs/assets/examples/interactive-false.png
Binary file modified docs/assets/examples/jump-to.png
Binary file modified docs/assets/examples/language-switch.png
Binary file modified docs/assets/examples/line-across-180th-meridian.png
Binary file modified docs/assets/examples/line-gradient.png
Binary file modified docs/assets/examples/live-geojson.png
Binary file modified docs/assets/examples/live-update-feature.png
Binary file modified docs/assets/examples/local-geojson-experimental.png
Binary file modified docs/assets/examples/local-geojson.png
Binary file modified docs/assets/examples/local-ideographs.png
Binary file modified docs/assets/examples/locate-user.png
Binary file modified docs/assets/examples/map-tiles.png
Binary file modified docs/assets/examples/mapbox-gl-draw.png
Binary file modified docs/assets/examples/mapbox-gl-rtl-text.png
Binary file modified docs/assets/examples/measure.png
Binary file modified docs/assets/examples/mouse-position.png
Binary file modified docs/assets/examples/multiple-geometries.png
Binary file modified docs/assets/examples/navigation.png
Binary file modified docs/assets/examples/offset-vanishing-point-with-padding.png
Binary file modified docs/assets/examples/pmtiles.png
Binary file modified docs/assets/examples/polygon-popup-on-click.png
Binary file modified docs/assets/examples/popup-on-click.png
Binary file modified docs/assets/examples/popup-on-hover.png
Binary file modified docs/assets/examples/popup.png
Binary file modified docs/assets/examples/queryrenderedfeatures.png
Binary file modified docs/assets/examples/render-world-copies.png
Binary file modified docs/assets/examples/restrict-bounds.png
Binary file modified docs/assets/examples/satellite-map.png
Binary file modified docs/assets/examples/scroll-fly-to.png
Binary file modified docs/assets/examples/set-perspective.png
Binary file modified docs/assets/examples/set-popup.png
Binary file modified docs/assets/examples/simple-map.png
Binary file modified docs/assets/examples/third-party.png
Binary file modified docs/assets/examples/timeline-animation.png
Binary file modified docs/assets/examples/toggle-deckgl-layer.png
Binary file modified docs/assets/examples/toggle-interaction-handlers.png
Binary file modified docs/assets/examples/variable-label-placement.png
Binary file modified docs/assets/examples/variable-offset-label-placement.png
Binary file modified docs/assets/examples/vector-source.png
Binary file modified docs/assets/examples/video-on-a-map.png
Binary file modified docs/assets/examples/visualize-population-density.png
Binary file modified docs/assets/examples/wms.png
Binary file modified docs/assets/examples/zoomto-linestring.png

0 comments on commit 3164f1d

Please sign in to comment.