forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Add in novel Drake images for newer website (RobotLocomotion#14613)
- Loading branch information
1 parent
a0b94bf
commit 8c0322d
Showing
7 changed files
with
318 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
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.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.