public marks

PUBLIC MARKS from decembre with tags image & svg

2020

🛠 ONLINE TOOL - Photopea, une vraie alternative gratuite à Photoshop dans votre navigateur | Byothe.fr

Tout comme sur Photoshop, vous pouvez partir de zéro et créer une image ou ouvrir un fichier présent sur votre ordinateur. La force de cet outil, c’est qu’il fonctionne avec les formats de la plupart des logiciels de référence (Photoshop, GIMP, Sketch App, Adobe XD et CorelDRAW). Vos fichiers peuvent ensuite être sauvegardés au format JPG, PNG, SVG ou même PSD ! Les outils sont nombreux et l’on retrouve même la plupart des filtres disponibles sur Photoshop… Moi qui utilise (très mal) Photoshop, j’ai vraiment eu l’impression de me retrouver sur un outil très très proche. Editer un fichier PSD avec Photopea La bonne nouvelle, c’est que Photopea est vraiment une alternative gratuite et en ligne à Photoshop. En effet, cet outil est capable d’ouvrir les fichiers natifs de Photoshop, les fichiers PSD. Les différents calques sont bien visibles ce qui permet de travailler de manière efficace sur des fichiers issus du logiciel d’Adobe.

SVGvs GITHUB - Why SVG Image Hosting is Hard (and how to do it for free)

Github also has a thing called ‘Gists’. Gists are designed for sharing small code samples of whatever you like. If you create a free Github account, you can add new gists to your account whenever you like. They’re 100% free. The interesting thing about gists is we don’t even have to be logged in to create one. If you open this page, paste in some text in, give it a filename and hit ‘Add file‘, you’ll have a publicly-accessible URL to an anonymous file. Of course, it’s probably easier to keep track of your files if you just create a free GitHub account from the start, but you don’t have to to try it out. How to Host your SVG in a GitHub Gist

2019

CSS - TRICKS - Coloring SVGs in CSS Background Images by Noah Blon on CodePen

(via)
I love using SVG in CSS background images but it sucks that you can't alter the fill color easily within your CSS. Here are a few ways around that. # SVG in CSS backgrounds: Using SVG in CSS backgrounds allows you to use CSS's powerful background sizing and position properties. This makes sizing SVGs much simpler because the image easily scales to the size of your element. Plus you don't have SVG cluttering up your markup. There are also some nice performance benefits over inline SVG. An SVG in a background image can be cached. Using image sprites and embedding SVG as a data URI can also improve performance.

2017

CSS - SVG - fill | CSS-Tricks

Another Use Case: The fill property is one of many reasons SVG is a much more flexible option than typical image files. Let's take icons, as an example. We might have the same set of icons but in two different color schemes. Typical image files (such as JPG, PNG and GIF) would require us to make two versions of each icon — one for each color scheme. SVG, on the other hand, allows us to paint the icons in using the CSS fill property: .icon { fill: black; } .icon-secondary { fill: orange; }