BDraw v1.8

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#21 Post by charlie6 »

Hi,
would like to get a try ...
:cry: i only got this on dPup-Exprimo an uPup-Precise-5.4.X.4...
BDraw-1.4 and 1.3
here gtkdialog is 0.8.2 (exprimo) and 0.8.3 (precise).
did i miss something..?
thanks for any answer
Charlie
Attachments
capture22025.jpg
(13.56 KiB) Downloaded 755 times

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

#22 Post by SFR »

Hey Charlie6

Just tried BDraw-1.4 on the uPup-Precise-5.4.X.4 (fresh live boot as well as after creating pupsave) and everything's fine here...
Your screenshot suggests me that, for some reason, the initial, empty picture wasn't created properly and its resolution was set to contents of /root dir (Choices, Desktop), which is absolutely strange. :shock:

Could you please:

1. Redownload the app and verify its md5. Here are md5 sums of:
- uncompressed script:

Code: Select all

7a8d7473b86b04d1342ab3926a89170a  bdraw-1.4.sh
- as well as gzip'ed file:

Code: Select all

f6028d11539a7f3f64bfb76600ef0468  bdraw-1.4.sh.gz
2. Launch it from the terminal and post the results.

(3. And maybe try it on clean Puppy with pfix=ram ..?)

Greetings!
Last edited by SFR on Tue 27 Nov 2012, 18:45, 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
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#23 Post by pemasu »

Tested it also. :D
Attachments
UpupPrecise54X4.png
(29.88 KiB) Downloaded 807 times

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#24 Post by charlie6 »

Hi SFR,
thanks for answering
- checked OK the md5sums;
- runs nice on a fresh upup-54X4 install;
- here is the console comment related to my above pet:
note: there are other pets already installed (see attachment)..maybe the cause would be there..?
# ./bdraw-1.4.sh
sh: line 1: [: Choices: integer expression expected
sh: line 1: [: Desktop: integer expression expected
sh: line 1: [: Choices: integer expression expected
sh: line 1: [: Desktop: integer expression expected
sh: line 4: [: Choices: integer expression expected
sh: line 4: [: Desktop: integer expression expected
sh: line 1: [: Choices: integer expression expected
sh: line 1: [: Desktop: integer expression expected
sh: line 4: [: Choices: integer expression expected
sh: line 4: [: Desktop: integer expression expected
sh: line 1: [: Choices: integer expression expected
sh: line 1: [: Desktop: integer expression expected
sh: line 1: [: Choices: integer expression expected
sh: line 1: [: Desktop: integer expression expected

** (gtkdialog4:21541): WARNING **: The recently launched window "SURE" is missing an equivalently named variable directive <variable>SURE</variable> which is a requirement of the launch action.
sh: line 1: [: Choices: integer expression expected
sh: line 1: [: Desktop: integer expression expected
CUR_DISPLAY=" Start: 92,127 End: 92,127"
DASH_VAR="false"
FILL_VAR=""
M="Freehand"
OPAC="1.0"
PICTURE=""
RES_DISPLAY=" Width: Choices Height: Desktop"
STROKE_VAR=""
SUREWINDOW=""
SW="1"
EXIT="Exit"
#
thanks
Charlie
Attachments
user-installed-packages.txt.gz
just drop gz extension to read
(2 KiB) Downloaded 751 times

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

#25 Post by SFR »

Hmm, I installed most of these packages (except TiMidity++-2.13.0 (but the newer 2.13.2 - yes), lxtask_NLS-0.1.4, ttf-bitstream-vera_1.10-8 and xorg_high_intel-0.0.1) and still can't reproduce this issue.
But my suspicions goes to Xdialog.

Would you like to do a little bit of debugging? :wink:
About line 709 there's the following piece of code:

Code: Select all

  RESOLUTION="`Xdialog --title "Choose picture resolution" --2spinsbox "" 0 0 1 $MAXX $DEFX "Width" 1 $MAXY $DEFY "Height" 2>&1`"
  [ "$?" -ne 0 ] && exec $MYNAME
  X="`echo $RESOLUTION | cut -f1 -d '/'`"
  Y="`echo $RESOLUTION | cut -f2 -d '/'`"
  echo $X $Y > $PICRES
  make_empty
Change it to:

Code: Select all

  RESOLUTION="`Xdialog --title "Choose picture resolution" --2spinsbox "" 0 0 1 $MAXX $DEFX "Width" 1 $MAXY $DEFY "Height" 2>&1`"
  [ "$?" -ne 0 ] && exec $MYNAME
    echo "$RESOLUTION"  	# DEBUG
  X="`echo $RESOLUTION | cut -f1 -d '/'`"
  Y="`echo $RESOLUTION | cut -f2 -d '/'`"
    echo $X $Y			# DEBUG
  echo $X $Y > $PICRES
    cat $PICRES			# DEBUG
  make_empty
    cat $PIC				# DEBUG
    exit 1   # Exit at this point
Launch it from terminal again and post the results.

Also, if debugging will return "Choices" and "Desktop" again, replace the first line (from above) with this:

Code: Select all

  RESOLUTION="`Xdialog --stdout --title "Choose picture resolution" --2spinsbox "" 0 0 1 $MAXX $DEFX "Width" 1 $MAXY $DEFY "Height" 2>/dev/null`"
(it's single line)
Just a blindshot, but might work...

BTW, at the initial window when you press "New" button, the next window where you can choose resolution shows "512 Width" and "256 Height" or something else?

_______________
Puppyt wrote:WOW! Fantastic work, SFR - I guess now we don't have to keep lamenting that Barry's EVE can't be ported into Puppy http://bkhome.org/eve/ :)
Thanks Puppyt. Eve - yes...I played with it a little bit (as well as with Menuet OS) before I even knew what Puppy Linux is. :)

@Pemasu: I like your drawings! :)

Greetings!
[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
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#26 Post by charlie6 »

Hi SFR,
SFR wrote:Hmm, ...Would you like to do a little bit of debugging? :wink: ...About line 709
thanks for your time !
attached: the console comments when doing the line 709 proposed replacements ...in both cases, BDraw-1.04 hangs up when pressing "New" :cry: .

I believe I've just found the cause and reproduced it:
in the attached comments, the first lines report a problem with gtk theme:
# ./bdraw-1.4.sh
** WARNING (recursed) **: Invalid borders specified for theme pixmap:
/usr/share/themes/Mac4Lin_GTK_v0.4-MU/gtk-2.0/Buttons/button-default.png,
borders don't fit within the image
512/256
I compared with another theme running without such problem and which has gtk-2.0/button-default.png (i forgot which name...);
Mac4Lin_GTK_v0.4-MU/gtk-2.0/button-default.png size is 75x23;
whereas the other is 75x25;
I then edited Mac4Lin_GTK_v0.4-MU/gtk-2.0/button-default.png to 75x25 (using mTpaint); saved it and restarted jwm and X;
>>------> no more problem reported;
then ran BDraw >>-----> now runs OK :D :D
Attachments
bdraw-debug.txt.gz
(1.54 KiB) Downloaded 763 times

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

#27 Post by SFR »

At last I was able to reproduce this.
Hmm, theme interference, I would have never thought! :shock:

The debug shows that there is problem with Xdialog in combination with this theme also, and:

Code: Select all

  RESOLUTION="`Xdialog --stdout --title "Choose picture resolution" --2spinsbox "" 0 0 1 $MAXX $DEFX "Width" 1 $MAXY $DEFY "Height" 2>/dev/null`"
was a good guess indeed...
There's a few more lines with faulty Xdialog syntax - I've corrected them in version 1.5, which works ok for me now with that specific theme.

I'm glad we have figured out what's going on, thanks! :D
_____________

Another addition:
After many trials&errors, tricks I'm not proud of, and almost crossing the edge of comprehending my own code complexity :wink: , I added (poor's man) "Preview" ability.
It's synchronized with coordinates updating (1 sec.).
It works with any tool except "Freehand" and "Text"; also, for "Arc" it shows only the final stage of creation (x3,y3).
I added togglebutton (an eye icon) to (de)activate it (default = off), because it can simply act too slow on slower machines.
This is rather experimental addition, so I'd be glad for any info how it works on other machines and if it's really usable or not..?

First post updated.

Greetings!
[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
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#28 Post by vovchik »

Dear SFR,

I have not yet tried a BaCon port, which I will, but since it is really C it would be instantaneous. Sorry for not responding, but I did not read that long thread fully until now.

With kind regards,
vovchik

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

#29 Post by SFR »

vovchik wrote:I have not yet tried a BaCon port, which I will, but since it is really C it would be instantaneous.
Can't wait. :)
BTW, I have no another updates in plans in the nearest future (unless some bug will pop up), so v1.5 can be considered as "final".

Thanks & Greetings!
[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
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#30 Post by SFR »

SFR wrote:[...](unless some bug will pop up)[...]
I had a hunch about that...

I discovered that "Import Clipart" option doesn't work in Precise and uPup-Precise.
I don't really know why, my guess is that there is a newer, more strict library responsible for displaying SVG in this pair.

Anyway, I've managed to fix that.

But since I have found that:

1. In those two Puppies only the following formats are supported:
.bdr, .svg, .bmp, .gif, .jpg, .png
2. tif/tiff makes BDraw hangs (sooo "sweet" :roll: )
3. pnm seems to not work at all...

I just reduced allowed formats to those six above; they're most popular anyway (except .bdr of course :wink: ).

Sorry for inconvenience.

Version 1.5 has been replaced with v1.5.1 in the first post.

Greetings!
[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
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#31 Post by RSH »

HI.

I have watched this from time to time and also downloaded. So, I must say: I like this. :D

Last version I've tested was 1.4 - it could not set/paint a single dot.

Suggestion:

Make it able to draw a single dot and insert a function to zoom single dots to (let's say) 8 pixels (for the use of small images).

It could be then a very nice and really useful Icon Editor. :idea: :D :lol:
SFR @ Icon Finder wrote:
RSH wrote:I like this that much, so i have made an icon for it.

Hope you like this.
Sure I do like! Me personally can't draw a straight line, so I always appreciate such a help.
Your icon has been included.
PLEASE!
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

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

#32 Post by SFR »

RSH wrote:Last version I've tested was 1.4 - it could not set/paint a single dot.

Suggestion:

Make it able to draw a single dot and insert a function to zoom single dots to (let's say) 8 pixels (for the use of small images).

It could be then a very nice and really useful Icon Editor. :idea: :D :lol:
Sure you can, just choose "Line", increase stroke-width a bit, and...start making dots.

Just kidding, I know what you mean. :wink:

You can do it this way: choose some bigger drawing area size to get control on details, eg. 480x480, make an icon and then save it as .png with 48x48 resolution.

Zoom option has crossed my mind, but it doesn't make sense really, since it's vector graphic, so even if some part of the picture would be zoomed, you couldn't see its "pixels" anyway.
SFR @ Icon Finder wrote:
RSH wrote:I like this that much, so i have made an icon for it.

Hope you like this.
Sure I do like! Me personally can't draw a straight line, so I always appreciate such a help.
Your icon has been included.
PLEASE!
I'm really hopeless in drawings, isn't that ironic..? :lol:

Thanks & Greetings!
Attachments
dots.png
(24.11 KiB) Downloaded 937 times
[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
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#33 Post by SFR »

I couldn't stop myself: Version 1.6 uploaded.

Only one purpose: performance optimization in critical functions.
Result: ~15% less resource hungry.

Actually it's efficient enough to add (rough) preview for "Freehand" mode, what I did.
"Arc" preview has been improved too - now all stages of creation are shown.

First post updated.

Greetings!
[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]

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

How do I use this?

#34 Post by Dromeno »

BDraw looks promising but I have no idea how to use it in Lucid Pup 528005 (icewm as window manager)?

bdraw-1.61 reports "something is missing or doesn't work right" and "Double check requirements"

it is not an installable program so I do not know how to check for dependencies

bdraw-1.51 does work but it does not open existing png files, after I click on open picture the program returns to the Welcome to Bdraw dialog

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

#35 Post by SFR »

Hey Dromeno
bdraw-1.51 does work but it does not open existing png files, after I click on open picture the program returns to the Welcome to Bdraw dialog
BDraw won't load directly any other image type than .bdr (which is .svg really, but has "one-shape per one-line" layout).
If you'd like to include a .png image in your drawings, just choose "New" and then "Import Clipart" from Toolbox.
bdraw-1.61 reports "something is missing or doesn't work right" and "Double check requirements"

it is not an installable program so I do not know how to check for dependencies
Ok, just launch the app from command line and post the results...

Deps are listed in the first post, but I don't recall including anything new between 1.5.1 -> 1.6.

And since you're running Lupu always choose '<button>' as drawing area in initial window, unless you have upgraded Gtkdialog to >= 0.8.1

There were some problems with IceWM + specific theme(s?) reported earlier and it's been fixed in 1.5.1, but apparently I broke it again in 1.6.

Greetings!
[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]

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

#36 Post by Dromeno »

The console doesn't show much when I execute bdraw-1.6.sh (see screenshot)

But I am not sure yet if this is the tool I am looking for. What I would like to have is a simple screenshot annotation tool, something which does what shutter for ubuntu can or awesomscreenshot for chrome does
http://awesomescreenshot.com/
take a screenshot, add text / ellipses / arrows, perhaps a text bubble.
I know it can all be done with GIMP but it involves a lot of steps
http://www.makeuseof.com/tag/create-spe ... hots-gimp/

Likely it can be done in mtPaint as well but I have not found a good tutorial yet
Attachments
Bdrawtest.jpg
(125.63 KiB) Downloaded 726 times

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

#37 Post by SFR »

What really matters - what's the terminal output when you click 'New', adjust resolution (or not) and click 'Ok'?
Also, what's the name of your current theme? I'll try to recreate the issue.

As for annotation tool, the purpose of BDraw is just to doodle (i.e. there's no arrows and stuff), but as a last resort, why not..? :wink: (see screenshot)

Greetings!
Attachments
BDraw-sample.jpg
(121.33 KiB) Downloaded 564 times
[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]

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

Terminal output after clicking click 'New

#38 Post by Dromeno »

Hi SFR

Using icewm theme ElbergBlue-anim

(but I do not think that is important since the same thing happens in JWM)

This is the terminal output after clicking click 'New':

sh-4.1# testbdraw

(gtkdialog5:23535): Gtk-CRITICAL **: gtk_spin_button_new_with_range: assertion `step != 0.0' failed

(gtkdialog5:23535): Gtk-CRITICAL **: gtk_spin_button_set_value: assertion `GTK_IS_SPIN_BUTTON (spin_button)' failed
**
ERROR:variables.c:166:variables_new_with_widget: assertion failed: (widget != NULL)
/usr/local/bin/bdraw-1.6.sh: line 1079: 23535 Aborted $GTKDIALOG -c -p MAIN
sh-4.1#

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

#39 Post by SFR »

Ok, I see that <spinbutton> has something to do with this, but I still cannot recreate the issue under Lupu...
Could you post the exact version of Gtkdialog(s) you have installed?

Code: Select all

gtkdialog --version
gtkdialog4 --version
gtkdialog5 --version
Also, it's worth to see how v1.6 works with pfix=ram and (it's a wild guess) with different GTK theme.

Meanwhile I attached version 1.6.1 - I replaced spinbuttons with comboboxtexts, as it was in v1.5.1, so hopefully will work ok for you now.

Greetings!
Attachments
bdraw-1.6.1.sh.gz
(7.3 KiB) Downloaded 580 times
[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
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#40 Post by rhadon »

Hi SFR,

tested 1.6.1 with Slacko 5.4 today, and it's great :D . Really good work. Haven't tested everything, but what I did by now, worked.

Not so with 1.6. Program allways stops quite after choosing picture resolution.

Error message:

Code: Select all

# ./bdraw-1.6.sh

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

(gtkdialog4:26977): 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)
./bdraw-1.6.sh: line 1079: 26977 Aborted                 $GTKDIALOG -c -p MAIN
# 
No matter I used my save file or pfix=ram, original gtkdialog 0.8.2 or new installed gtkdialog version 0.8.4 r503M. As you mentioned in your last post, there seemed to be a problem with the spinbuttons.

No problem for me, because 1.6.1 works fine :wink: .

Cheers and thanks again :D ,

Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

Post Reply