On 4/26/19 3:04 PM, Jonathan S. Katz wrote: > On 4/25/19 6:54 PM, Joe Conway wrote: >> On 4/25/19 5:59 PM, Jonathan S. Katz wrote: >>> On 4/25/19 5:26 PM, Joe Conway wrote: >>>> >>>> Is there any written instruction anywhere with guidance on how the SVGs >>>> should be made? >>> >>> https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=doc/src/sgml/images/README; >> >> Awesome -- that is what I had been looking for. Shouldn't we add that to >> the actual documentation style guide? >> >>> but I would suggest we had some guidance on how to ensure the image >>> stays scalable. >> >> Since you seem to know the magic incarnations, can you propose some words? > > Please see attached.
v2 -- fixed typo in height, and modified some of the language. Jonathan
diff --git a/doc/src/sgml/images/README b/doc/src/sgml/images/README index dd29486a09..089375c485 100644 --- a/doc/src/sgml/images/README +++ b/doc/src/sgml/images/README @@ -59,3 +59,10 @@ Notes: - The width should be set to something. This ensures that the image is scaled to fit the page in PDF output. (Other widths than 100% might be appropriate.) + +- SVG images should be scalable as they will be rendered in a variety + of places (web, PDF, etc.) as well as in different viewports + (desktop, mobile, etc.). To help the images successfully scale, + please employe a "viewBox" attribute in the svg tag. For example, + to create with a default width and height of 400x300, you would use + viewBox="0.00 0.00 400.00 300.00"
signature.asc
Description: OpenPGP digital signature