SVG/PNG Wallpaper Maker

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#81 Post by trio »

@Solo,

will you help? I am not good at this. just make the pic close to bottom edge. Using your quirky's gap as standard is good.

Thank you in advance. I attached the stamps (including yours)
Edit: i wonder if that will affect shadow effect? Guess we have to try first
Attachments
stamps.tar.gz
(4.91 KiB) Downloaded 419 times

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

#82 Post by solo »

Here you go trio! The stamps are now aligned to the bottom like the quirky stamp.
Attachments
stamps_corrected.tar.gz
(4.63 KiB) Downloaded 403 times

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

#83 Post by trio »

V 1.8.9.2: Now reflection effect is pretty uniformed see main post

@solo

Thanks. It's perfect...

now let's try and see if all working good
Attachments
quirky.png
(97.53 KiB) Downloaded 269 times

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

#84 Post by solo »

Another doggie stamp for those interested:

Code: Select all

<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96">
<path d="M80 25l4 3c2 1 1 2 2 3s6 3 6 4c0 2-3 3-5 3-3 0-3-1-8-1-2 4-3 10-3 11l-1 5-1 2c0 4-2 7-2 8 0 14-5.455 16.242-2 27 2 1 2 1 3 1s2 1 2 2c-1 1-2 1-3 1h-3l-1-2-1-6h-1c-1-2 1-16-2-19l1-2h-1c-3 1-4 1-5 1-6-1-13-7-18-8-3-1-3-1-4 0l-1 2h-2l-2-2c-2 3-2 4-3 6-2.437 3.118-6 4-7 6 0 6 0 7-1 8-1-2-1-3-1-7-6 3-14 11-13 17 1 0 1 0 2 1v2c-2 1-3 1-5 0v-4c2-4 2-9 3-12 7-5 10-9 11-16-2-4 0-10 3-12s7-3 9-3c1 0 3-1 16 0 7 1 7 0 8 0 3-1 7-1 9-2 1-1 1-1 2-1 3-3 4-10 9-14 0-1 1-2 2-2 2-3 1-7 3-7 1 2 0 5 1 7z" fill="none" stroke="#444" stroke-width="3"/>
</svg>

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

#85 Post by smokey01 »

Trio when you run out of ideas maybe you could include an option to load existing wallpapers so they can be modified :lol:

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

#86 Post by trio »

smokey01 wrote:Trio when you run out of ideas maybe you could include an option to load existing wallpapers so they can be modified :lol:
Haha, that would be a great effort. Unlike jwm theme maker and gtk theme maker which outputs are uniformed, wallmaker's outputs are variative. Also png, one should open in mtpaint to edit. That's why i present the go to directory button. One can go there to delete, open with or anything

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

#87 Post by solo »

Not as small in size as I hoped it would be, but it's as good as it gets.

Here's the TahrPup stamp:

Code: Select all

<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96">
<path d="M49 64c11 0 11-15 0-15-9 0-10 15 0 15zM23 86c0 8 10 8 13 8 16-1 39-30 40-32 0-21 11-19 12-25 1-4 2-9 0-13l-5-4c-7 0-10-1-16-4h-2l-4 4c-9-1-16 1-24 1-3.88-1.045-5-4-9-5-3-1-5-1-6 0-7 4-13 11-15 15 4 1 7-8 11-9 4 4 6 7 6 10-2 9-4 18-4 22l2 10c-2 5-6 8-6 15 0 3 1.123 7 7 7zm0 0c5 4 13 5 18 0m-17-2c6-2 5-3 5-6-2-1-5-3-8-1-2 3 0 6 3 7zm-1-2l4-2-4-2zm-1-22c2-1 3-3 3-5 0-3-2-9-2-18m-1 22l1-15m47 25c-6 2-9 5-15 5-8 0-7-8-12-13-9-9 3.14-23.627 3-30 0-2 1-5-1-8-6-2-16 6-21 9m34-5c0 8 3 13 8 16 6 4 14 3 16 0-9-1-16-4-24-16zM48 55c-1 1-1 1-1 2 0 2 1 3 3 3 1 0 1 0 2.12-.88M55 55c0-2-1.067-3-3-3s-4 1-4 3 2 4 4 4c.966 0 1 0 2-1M24 18h3v10h-3zm-5 1l2-1v6l-2-2zm11-1l3 2v5l-3 2zm7 5h-4m14-1h2v25h-2zm-5 30l3-3V39l-3 4zm7 15h21l2-3H48zm2 3h13l-2 2H52zm6-9h17v-3H58zm1-9h17l-1 3H59zm-5-4h23v3H57zm-1-26h3v23h-3zm6 5v18h8c-4-3-8-7-8-18zm3 18v-5m-3-18h24l3 3H60zm4 6h26v3H64zm4 6h20v2H68zm7 5h11l-2 2h-7zm-8-21h5l3 2h-9z" fill="none" stroke="#444" stroke-width="3"/>
</svg>

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#88 Post by step »

@trio
* Version 1.8.9.2 reviewed. Great stuff. Thank you!
* Desktop file - In usr/share/applications/wallmaker.desktop consider deleting ".xpm" from the icon file name. An extension isn't needed in this case, but verify my statement on your platform. Redundant extensions can confuse some programs, which fail displaying the icon. So, as a rule of thumb I never add an extension unless I need to specify the _full_ file path.
* Packaging _suggestion_ - Instead of assuming that root is the user, and putting stamps and templates in /root/.wallmaker, consider putting them in /usr/share/wallmaker, and adding a pinstall.sh script to the pet. This script can install the templates to $HOME with:

Code: Select all

mkdir -p $HOME/.wallmaker/stamps $HOME/.wallmaker/templates
cp -a /usr/share/wallmaker/stamps /usr/share/wallmaker/templates $HOME/.wallmaker/
My point is that not all puppies are single-user, root-only (Fatdog64 isn't, for one).

@smokey01 - and @trio, maybe
Setting background wallpaper - In Fatdog64-710 alpha2 the command to set background wallpaper is /usr/bin/wallpaper. Try /usr/bin/wallpaper -help from a terminal to see all available options. With no options it starts the Fatdog64 GUI. The current release version doesn't support svg but I have added support to my development version. It will be included in the upcoming Fatdog64-710 beta cycle. My development version is here [url]https:/github.com/step-/nathans-wallpaper[/url], from which you can download the latest script. Fatdog64 710a2 includes version 0.7.3 (GUI Help>About to display version). If you're upgrading to a newer version please read CHANGELOG.md for upgrade instructions. Svg support was added in commit b55bdbe 29-Jul-2016. Feedback's welcome.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

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

#89 Post by trio »

@step

Feel free to modify. I am not in the mood now. Thanks

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

#90 Post by solo »

Here's the 'other' TahrPup stamp:

Code: Select all

<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96">
<path d="M42 56l-3 7m-4 0l3-1v4l-3 4zm-6 4l3-1v7l-3 3zm-6 0h3v13l-3 2zm-6-2l3 1v17l-3-2zm-6-5l3 2v14l-3-2zM5 48l3 5v15l-3-4zm40-7V21M41 4l3 9v36l-3-11zm-6 2l3-1v30l-3-2zm-6 3l3-2v24l-3-1zm-6 3l3-2v19h-3zm-6 5l3-3v16l-3 1zm-6 8l3-4v11l-3 3zm0-19l2 1v5l-2 3zM5 7l3-1v38l-3 3zm73 4h13v2h-4zm-7-6h20v3H76zM50 2h41c4 5 4 13-1 13S72 7.667 63 4M2 47V6c5-4 13-4 13 1S7.667 25 4 34m18 52C46 68 54 32 42 3M25 55v-6m-2 0h4v6h-4zm7 3c0 7-10 7-10 0s10-7 10 0zm33 5l-1-4m-4 0l8-1m-2-14c-8 0-8-12 0-12s8 12 0 12zm4-6h-7m-1-3h7v6h-6zm3 32L49 49l24-3zm0 0c0 8-16 13-22 5m45-9c1 12-17 12-23 4m-38 4C2 64 2.07 31.962 25 31c23 1 23 33 0 34zm30-14l8 7 5-9zm39-3c0 26-21 46-46 46C22 94 2 74 2 48S22 2 48 2s46 20 46 46z" fill="none" stroke="#444" stroke-width="3"/>
</svg>

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#91 Post by step »

@trio

modified, see attached:
- added solo's two tharpup stamps
- moved stamps and templates to /usr/share/wallpaper
- added pinstall.sh - initializes $HOME/.wallpaper (overwrites like-named files)
- added puninstall.sh - preserves user-added stamps/templates
- changed desktop file Icon= path to full path (works for Fatdog64)
- bumped version 1.8.9.3

This .pet can be converted into Fatdog64-710 package format using the Rox right-click menu entry "Convert to new package format".

I was able to test the Fatdog64 version only, you should make sure the .pet works OK for your Puppy.
Attachments
wallmaker-1.8.9.3.pet
(10.26 KiB) Downloaded 411 times
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

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

#92 Post by solo »

Okay, so, what happened is that I tested step's version on Fatdog64 6.31, and it didn't work as it should.

What I get is the Wallpaper maker window, but when I click on a wallpaper design to edit, nothing happens.

Incidentally, the same thing happens when I install trio's pets in Puppy Precise.

I did find out, however, that it is possible for Puppy Precise to have an svg wallpaper.

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#93 Post by step »

solo wrote:Okay, so, what happened is that I tested step's version on Fatdog64 6.31, and it didn't work as it should.
Hi Solo, that must be an issue in Trio's code, I didn't change that part at all. Also, please note that I don't use Fatdog64 6.31, I use the 700 series. Smokey01 reported that Trio's script works on Fatdog64 710, and that's my finding too, including the edit function.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

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

#94 Post by trio »

My guess is a problem with new stamps pack. I cant bw with puppy for quite long. Try run it from terminal and see the error

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

#95 Post by solo »

trio wrote:My guess is a problem with new stamps pack. I cant bw with puppy for quite long. Try run it from terminal and see the error
Okay then.

Since my main Puppy is Puppy Precise I've tried it with the wallmaker-1.8.9.2.pet package, but since it behaves the same way as the 1.8.9.3 package in Fatdog 6.31, there may be reason to believe the same thing is going on.

When I click on a wallpaper icon to edit in the dialog window, this appears in terminal:

Code: Select all

(gtkdialog:29923): Gtk-CRITICAL **: IA__gtk_spin_button_new_with_range: assertion `step != 0.0' failed

(gtkdialog:29923): Gtk-CRITICAL **: IA__gtk_spin_button_set_value: assertion `GTK_IS_SPIN_BUTTON (spin_button)' failed
**
ERROR:variables.c:189:variables_new_with_widget: assertion failed: (widget != NULL)
sh: regel 1: 29923 Aborted                 gtkdialog --program=editgui --center --space-fill=true
^C

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#96 Post by SFR »

solo wrote:When I click on a wallpaper icon to edit in the dialog window, this appears in terminal:

Code: Select all

(gtkdialog:29923): Gtk-CRITICAL **: IA__gtk_spin_button_new_with_range: assertion `step != 0.0' failed

(gtkdialog:29923): Gtk-CRITICAL **: IA__gtk_spin_button_set_value: assertion `GTK_IS_SPIN_BUTTON (spin_button)' failed
**
ERROR:variables.c:189:variables_new_with_widget: assertion failed: (widget != NULL)
sh: regel 1: 29923 Aborted                 gtkdialog --program=editgui --center --space-fill=true
^C
It appears that Solo's locale uses 'comma' instead of 'dot' as a decimal separator.
If so, all '0.5' values must be replaced with '0,5' (wallmaker, lines 515-516).

Using this code one can check which one should be used:

Code: Select all

printf "%f" 0.1 >/dev/null 2>&1 && echo dot || echo comma
EDIT: or better this one as the above seem to work properly only with Bash's printf:

Code: Select all

printf '%f' 1e-1 | grep -q '\.' && echo dot || echo comma
Greetings!
Last edited by SFR on Tue 09 Aug 2016, 16:24, edited 1 time in total.
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

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

#97 Post by trio »

Dear SFR

thanks for your explanation

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

#98 Post by solo »

SFR wrote: It appears that Solo's locale uses 'comma' instead of 'dot' as a decimal separator.
If so, all '0.5' values must be replaced with '0,5' (wallmaker, lines 515-516).
Yes. Confirmed!

When the dots are replaced by comma's, wallmaker works as intended.

Incidentally, my locale is the Netherlands, and yes, we use comma's as decimal seperators in my country.

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

#99 Post by solo »

Here's an extra stamp of a rose:

Code: Select all

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96">
<path d="M92 52l-9 24-20 11-20-4-10-14 4-14 10.72-2.5L55 61l-5 13-16 6-19-8L5 50l7-23 21-14 23 2 14 15-1 18-11 9-10.28-4.5L47 41l12-8 16 5 11 18-5 23-20 15H37L19 78l-2-21 11-13 14-1 5.72 9.5L42 62l-14-1-11-13 2-21 18-15 24-1 20 15 5 22-11 19-16 5-12-8 .72-11.5L58 48l11 9 1 18-14 15-24 2-20-14-7-23 10-22 19-8 16 6 5 13-7.28 8.5L37 50l-4-14 10-14 20-4 20 11z" fill="none" stroke="#444" stroke-width="3"/>
</svg>
You can copy this text in a text editor, and then save it with an svg extention, which then makes it an svg. Save it in the ~/.wallmaker/stamps/ folder.

I made it with the aid of Spiroj, which you can find here:

http://murga-linux.com/puppy/viewtopic.php?t=108441

But I did have to do further work on it in Inkscape to optimize it.
Attachments
spirorose02.png
(6.82 KiB) Downloaded 210 times

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#100 Post by step »

Thanks solo, I enjoy your creations!
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

Post Reply