-
This is a breakout from #3645 (comment). Do we have the need to keep an uncompressed source file for further editing? Note, that this might blow up the repo size for everybody! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Related: mdn/content#4505 (comment) |
Beta Was this translation helpful? Give feedback.
-
See #1678 We should have a recommended way to store any source docs we might use. The mechanism needs to be persistent and dead easy to associate with the rendered file. Historically I have used things like HTML comments with links to draw.io or lucidchart. The other option is to use something like SVG where there are open source editors that are pretty good - at least once the base image has been created. |
Beta Was this translation helpful? Give feedback.
-
I'm against this idea. I think all images should be as small as they can be in the content repo. The other reason is that unoptimized SVGs add bytes to the git repo itself. Unnecessary bytes. If the SVGs files are larger than they need to, it makes every single I think it would be different if the circumstances were different. If the upload was done to a centralized server (e.g. an S3 bucket), then it doesn't need to be re-downloaded again and again. But that's now how Yari and the content works. I still think it's important to store the source files (the project files that produce the |
Beta Was this translation helpful? Give feedback.
I'm against this idea. I think all images should be as small as they can be in the content repo.
If an image is viewed 1,000,000 times by 1,000,000 different people, serving it as optimized as possible really does add up in greater net value. Faster pages. Less electricity use.
The other reason is that unoptimized SVGs add bytes to the git repo itself. Unnecessary bytes. If the SVGs files are larger than they need to, it makes every single
git clone
slower and uses up more disk space. Today, every single PR on the mdn/content repo runs a (shallow)git clone
. So if that blob is bigger than it needs to be it really starts to add up.I think it would be different if the circumstances were di…