Page 2 of 6

Posted: Sat 23 Jul 2016, 19:25
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
___________________________________

Posted: Sun 24 Jul 2016, 06:57
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

Posted: Sun 24 Jul 2016, 10:11
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.

Posted: Sun 24 Jul 2016, 10:23
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.

Posted: Sun 24 Jul 2016, 11:14
by trio
V 1.8.3: New background filter: TONED

Posted: Sun 24 Jul 2016, 23:37
by smokey01
This is a keeper.

Posted: Mon 25 Jul 2016, 01:09
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

Posted: Mon 25 Jul 2016, 02:32
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.

Posted: Mon 25 Jul 2016, 05:20
by trio
@smokey

Ooh you did it manually. Ok, tx for info

Posted: Mon 25 Jul 2016, 06:06
by smokey01
I'm trying to a add a few extra stamps but I'm not having any luck.

What's the trick here?

Posted: Mon 25 Jul 2016, 06:14
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

Posted: Mon 25 Jul 2016, 06:19
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?

Posted: Mon 25 Jul 2016, 06:26
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

Posted: Mon 25 Jul 2016, 06:31
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.

Posted: Mon 25 Jul 2016, 07:09
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

Posted: Mon 25 Jul 2016, 07:59
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

Posted: Mon 25 Jul 2016, 08:16
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>

Posted: Mon 25 Jul 2016, 08:21
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

Posted: Mon 25 Jul 2016, 08:46
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?

Posted: Mon 25 Jul 2016, 08:57
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