SVG/PNG Wallpaper Maker

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#21 Post by don570 »

Very nice work!

I put together a bunch of freeware icons that I collected from internet.
I wrote a script to put them on buttons.
A few might be of use to you.

http://www.murga-linux.com/puppy/viewto ... 137#909137
___________________________________

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#22 Post by trio »

V 1.8.2: Bugfix: not all backgrounds can have eefects

@solo you cannot get libs from other puppy?

@Don thanks, i'll look

User avatar
solo
Posts: 389
Joined: Thu 14 Nov 2013, 20:33

#23 Post by solo »

trio wrote:@solo you cannot get libs from other puppy?
Well, the problem is that every version of librsvg before 2.36 is potentially open to exploits.
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.

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#24 Post by smokey01 »

trio it works great in Fatdog64-710. Unfortunately Fatdog doesn't accept .svg background files. It's easy enough to convert them to .png though.

Kirk and James you may want to consider adding this functionality.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#25 Post by trio »

V 1.8.3: New background filter: TONED

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#26 Post by smokey01 »

This is a keeper.
Attachments
trio-wallmaker.png
Wallmaker does a great job.
(150.36 KiB) Downloaded 203 times

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#27 Post by trio »

smokey01 wrote:This is a keeper.
That is veey nice. Did you convert the svg to png? In what way? CLI? I cannot export to png correctly with cli inkscpalite.

If there is a right way, i would like to know with std puppies

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#28 Post by smokey01 »

trio wrote:
smokey01 wrote:This is a keeper.
That is veey nice. Did you convert the svg to png? In what way? CLI? I cannot export to png correctly with cli inkscpalite.

If there is a right way, i would like to know with std puppies
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.

How did you make your svg stamps? I like the simple one liners. Inkscape includes too much unnecessary code.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#29 Post by trio »

@smokey

Ooh you did it manually. Ok, tx for info

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#30 Post by smokey01 »

I'm trying to a add a few extra stamps but I'm not having any luck.

What's the trick here?

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#31 Post by trio »

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

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#32 Post by smokey01 »

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
I've been studying the format but how do you create the shapes?

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#33 Post by trio »

smokey01 wrote:
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
I've been studying the format but how do you create the shapes?
<path ......etc /> is the shape

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#34 Post by smokey01 »

trio wrote:
smokey01 wrote:
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
I've been studying the format but how do you create the shapes?
<path ......etc /> is the shape
Yes :lol: 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.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#35 Post by trio »

No software ... all using sed, simple arithmatics, xwininfo.... also transform, translate or suchh kind as they are std svg tools to scale move etc

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#36 Post by trio »

well, I gave up in adding save as png/jpg function, no std functionality up to tahr nor slacko can give satisfying result. users that need raster image may do it manually via open with mtpaint then save as png

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#37 Post by smokey01 »

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>

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#38 Post by trio »

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>
No Sir,

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

User avatar
recobayu
Posts: 387
Joined: Wed 15 Sep 2010, 22:48
Location: indonesia

#39 Post by recobayu »

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


Image
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 457 times

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#40 Post by trio »

thanks rocobayu, matur suwun

yes, circle can be a stamp as long as it is a path circle not circle circle and follow exact structure as built in stamps

and for adding multiple stamps, i'll think about it

Post Reply