Skip to content

Commit

Permalink
doc: Add in novel Drake images for newer website (RobotLocomotion#14613)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricCousineau-TRI authored Feb 18, 2021
1 parent a0b94bf commit 8c0322d
Show file tree
Hide file tree
Showing 7 changed files with 318 additions and 0 deletions.
30 changes: 30 additions & 0 deletions doc/images/drake-dragon.README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
This SVG does not render well in Firefox (nor in Inkscape), so we rasterize it.

Steps used to generate the accompanying PNG:

```sh
# For Ubuntu 18.04.
sudo apt install inkscape imagemagick-6.q16

cd drake/doc/images
# Export with inkscape.
inkscape --without-gui --export-area-drawing --export-dpi=300 \
drake-dragon.svg -e drake-dragon.png
# Scale down with ImageMagick.
convert ./drake-dragon.png -resize 25% -strip ./drake-dragon.png

# Generate favicon.
convert ./drake-dragon.png \
-resize 200x200 -gravity center -background none -extent 200x200 -strip \
favicon.png
```

*Note*:
I (Eric) tried 96 and 150 DPI. Did not look great.

I also tried stuff like
```sh
convert -units PixelsPerInch ./drake-dragon.png \
-density 300 -resize 800x800 drake-dragon.png
```
but it looked bad.
Binary file added doc/images/drake-dragon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
281 changes: 281 additions & 0 deletions doc/images/drake-dragon.svg
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 doc/images/drake-logo-white.svg
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 doc/images/drake-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions doc/images/favicon.README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Two different files at the moment.

- `favicon.ico`: This is the original website.
- `favicon.png`: This is for the new website, converted per
`./drake-dragon.README.md`.
Binary file added doc/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8c0322d

Please sign in to comment.