SVG/PNG Wallpaper Maker
Well, the problem is that every version of librsvg before 2.36 is potentially open to exploits.trio wrote:@solo you cannot get libs from other puppy?
However, if I wanted to update librsvg to a later version than 2.36, like 2.40, then I run against at least 5 dependencies that require updating for it to function properly, among which cairo.
I haven't exactly seen that process through to where it would take me, because I kind of assumed that I would inevitably stumble upon an update that would not exist for a kernel as old as Precise.
And to be honest, up to this point, I've never had a dire need to have an svg wallpaper or standard iconset, eventhough I really like working with svg as a format.
Scalable Vector Graphics have great potential in gui design. Very small in size, resolution independent, extremely flexible. It would be great to see a standalone OS of which every graphic element is svg.
EDIT: Edited the version number of librsvg in Precise Puppy which I had posted to be version 2.34, but is actually 2.36.
Last edited by solo on Sun 24 Jul 2016, 10:24, edited 1 time in total.
This is a keeper.
- Attachments
-
- trio-wallmaker.png
- Wallmaker does a great job.
- (150.36 KiB) Downloaded 203 times
I just click on your Setter Button, select the new wallpaper, click Edit, save as PNG then click apply to make it the new wallpaper. In Fatdog my default image editor is mtPaint, probably the same in most pups.trio wrote:That is veey nice. Did you convert the svg to png? In what way? CLI? I cannot export to png correctly with cli inkscpalite.smokey01 wrote:This is a keeper.
If there is a right way, i would like to know with std puppies
How did you make your svg stamps? I like the simple one liners. Inkscape includes too much unnecessary code.
I've been studying the format but how do you create the shapes?trio wrote:Smokey
Look at folder /root/.wallmaker/stamps then open one of the stamp as text. You have to make the stamp format exactly like the sample's structure. I retreived the path only then paste to the background. All using sed
Good luck
<path ......etc /> is the shapesmokey01 wrote:I've been studying the format but how do you create the shapes?trio wrote:Smokey
Look at folder /root/.wallmaker/stamps then open one of the stamp as text. You have to make the stamp format exactly like the sample's structure. I retreived the path only then paste to the background. All using sed
Good luck
Yes I'm aware of that but how do you convert the numbers etc in your head. Are you using software like inkscape to draw the paths? I know there are many standard shapes like square, circle etc but putting them into perspective is what has me stumped.trio wrote:<path ......etc /> is the shapesmokey01 wrote:I've been studying the format but how do you create the shapes?trio wrote:Smokey
Look at folder /root/.wallmaker/stamps then open one of the stamp as text. You have to make the stamp format exactly like the sample's structure. I retreived the path only then paste to the background. All using sed
Good luck
This is pretty standard code for svg but it doesn't work in your app.
Code: Select all
<svg width="96" height="96">
<circle cx="50" cy="50" r="40" stroke="#444" stroke-width="3" fill="none" />
</svg>
No Sir,smokey01 wrote:This is pretty standard code for svg but it doesn't work in your app.Code: Select all
<svg width="96" height="96"> <circle cx="50" cy="50" r="40" stroke="#444" stroke-width="3" fill="none" /> </svg>
It it designed only to swallow <path
Sorry
Code: Select all
if [ "$STAMP" = "true" ]; then
STAMPUSED=$(cat $WORKDIR/tmp/stamp)
if [ ! "$STAMPUSED" ]; then
STAMPUSED="puppy-head.svg"
fi
cat $WORKDIR/stamps/"$STAMPUSED" | grep "<path" | sed 's/<path //g' | sed 's/ fill="none" stroke="#444" stroke-width="3"\/>//g' > $WORKDIR/tmp/pathline
PATHLINE=$(cat $WORKDIR/tmp/pathline)
sed -i 's/<\/svg>/<path fill="none" stroke-width="3" stroke="'$STAMPCOL'" transform="translate('$STAMPX','$STAMPY') scale('$STAMPSIZE')" '"$PATHLINE"' \/>\\\n<\/svg>/g' $WORKDIR/tmp/copypic.svg
if [ "$STAMPFILTERSHADOW" = "true" ]; then
sed -i 's/<\/defs>/<filter id="shadow" x="-5%" y="-5%" width="140%" height="140%"><feGaussianBlur stdDeviation="2 2" result="shadow"\/><feOffset dx="6" dy="6"\/><\/filter>\\\n<\/defs>/g' $WORKDIR/tmp/copypic.svg
sed -i 's/<\/svg>/<path style="filter: url(#shadow)" fill="none" stroke-width="3" stroke="black" transform="translate('$STAMPX','$STAMPY') scale('$STAMPSIZE')" '"$PATHLINE"' \/>\\\n<\/svg>/g' $WORKDIR/tmp/copypic.svg
sed -i 's/<\/svg>/<path fill="none" stroke-width="3" stroke="'$STAMPCOL'" transform="translate('$STAMPX','$STAMPY') scale('$STAMPSIZE')" '"$PATHLINE"' \/>\\\n<\/svg>/g' $WORKDIR/tmp/copypic.svg
fi
if [ "$STAMPFILTERNONE" = "true" ]; then
sed -i 's/<\/svg>/<path fill="none" stroke-width="3" stroke="'$STAMPCOL'" transform="translate('$STAMPX','$STAMPY') scale('$STAMPSIZE')" '"$PATHLINE"' \/>\\\n<\/svg>/g' $WORKDIR/tmp/copypic.svg
fi
fi
canggih!
This is very cool..
I can make this background very quick (attach fake .gz).
Thanks Trio.
Some years ago, I also make a temporary background image using svg here:
http://www.murga-linux.com/puppy/viewto ... 606#722606
I make white circles2. Maybe if you don't mind, can you add option more than 1 stamp in a background? Can circles be in the stamps?
This is very cool..
I can make this background very quick (attach fake .gz).
Thanks Trio.
Some years ago, I also make a temporary background image using svg here:
http://www.murga-linux.com/puppy/viewto ... 606#722606
I make white circles2. Maybe if you don't mind, can you add option more than 1 stamp in a background? Can circles be in the stamps?
- Attachments
-
- wallpaper18644.svg.gz
- remove fake gz.
- (2.62 KiB) Downloaded 462 times