Create a button's icon with a part of a big image? - Beleaguered Castle

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Create a button's icon with a part of a big image?

Post by Klaus » Thu Aug 18, 2022 2:19 pm

Well, "drawingSVGCompile" sounds like it does in fact need the "SVG Icon Drawing Library".
If in doubt check everything with SVG. :-)

Zax
Posts: 457
Joined: Mon May 28, 2007 10:12 am
Location: France
Contact:

Re: Create a button's icon with a part of a big image?

Post by Zax » Thu Aug 18, 2022 2:41 pm

richmond62 wrote:
Thu Aug 18, 2022 12:58 pm
Oh, wait a big fat moment . . .

SVG icons are one thing,

and importing SVG images might be another.
Maybe "SVG Icon Drawing Library" is for the SVG widget. I would try just "XML" inclusion, as it is said in the Dictionnary:
The SVG XML file is parsed using revXML [...]

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Create a button's icon with a part of a big image?

Post by Klaus » Thu Aug 18, 2022 3:06 pm

Zax wrote:
Thu Aug 18, 2022 2:41 pm
The SVG XML file is parsed using revXML [...]
Oh, in that case check all XML stuff. :-)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Create a button's icon with a part of a big image?

Post by richmond62 » Thu Aug 18, 2022 4:37 pm

So . . . I built a Mac standalone with the 2 XML things mentioned
in the standalone settings and SVG import did NOT work.

So . . . I built a Mac standalone with the 2 XML things mentioned
in the standalone settings and this:
-
SShot 2022-08-18 at 18.39.22.png
SShot 2022-08-18 at 18.39.22.png (9.49 KiB) Viewed 3145 times
-
and SVG import did NOT work.

So . . . I built a Mac standalone this way:
-
SShot 2022-08-18 at 18.41.14.png
SShot 2022-08-18 at 18.41.14.png (10.59 KiB) Viewed 3144 times
-
and SVG import did NOT work.

stam
Posts: 2679
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Create a button's icon with a part of a big image?

Post by stam » Thu Aug 18, 2022 7:31 pm

I really don't know what would be needed but from skimming the above, i would have thought the following inclusions should be selected:
inclusions.jpg
I may be way off base with the drawing library but what harm could it do ;)
Is this what you did?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Create a button's icon with a part of a big image?

Post by richmond62 » Thu Aug 18, 2022 8:38 pm

Is this what you did?
Just read my previous posting and that will answer your question.

stam
Posts: 2679
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Create a button's icon with a part of a big image?

Post by stam » Thu Aug 18, 2022 8:45 pm

What I’m seeing in your previous post is that you did not include all of which I’ve shown…. In particular the icon svg library, and the possibly useful drawing library.
So I’m guessing the answer is “no”…

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Create a button's icon with a part of a big image?

Post by richmond62 » Thu Aug 18, 2022 8:50 pm

Just so.

Try and build a standalone of my silly stack with your selection and see if it works. 8)

I am travelling outwith Bulgaria for about 2 weeks so will be
far more evanescent than recently until I return.

stam
Posts: 2679
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Create a button's icon with a part of a big image?

Post by stam » Fri Aug 19, 2022 9:43 am

Zax wrote:
Wed Aug 17, 2022 12:57 pm
If I'm totally lost with Inkscape, I'll use this converter to convert graphics from Photoshop.
Vector graphics is a whole different kettle of fish and it's never easy if your only experience is with Photoshop and similar. A lot of this is down to the interface which tends to be archaic and impenetrable to new users.

If you're on a Mac, you may want to look at Vectornator instead - while apps like Inkscape are very capable, the interface can be overwhelming and difficult to get into. Vectinator is a breath of fresh air in comparison: https://www.vectornator.io

It's completely free and highly polished, with a lot of educational resources (also very polished polished, video tutorials etc). The interface is unlike pretty much most vector graphics apps and probably more similar to 'normal' graphics apps - but it is still a bit complex as vector graphics editing requires this.

I just downloaded it and was impressed - no subs, no ads, no upfront cost, but really a quality product... and it's available for both Mac and iOS, so it's going on my iPad too (sadly don't think there's a Windows or Linux version but may be wrong...).

HTH
Stam
Last edited by stam on Fri Aug 19, 2022 3:16 pm, edited 1 time in total.

Zax
Posts: 457
Joined: Mon May 28, 2007 10:12 am
Location: France
Contact:

Re: Create a button's icon with a part of a big image?

Post by Zax » Fri Aug 19, 2022 12:12 pm

Thank you for the link, Stam.

Unfortunately Vectornator requires at least MacOS 11.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3999
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Create a button's icon with a part of a big image?

Post by bn » Fri Aug 19, 2022 12:18 pm

Hi Stam,
If you're on a Mac, you may want to look at Vectinator instead - while apps like Inkscape are very capable, the interface can be overwhelming and difficult to get into. Vectinator is a breath of fresh air in comparison: https://www.vectornator.io
I went to their website and it looks really good.
Have yet to try it.

Kind regards
Bernd

stam
Posts: 2679
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Create a button's icon with a part of a big image?

Post by stam » Fri Aug 19, 2022 3:04 pm

Zax wrote:
Fri Aug 19, 2022 12:12 pm
Thank you for the link, Stam.

Unfortunately Vectornator requires at least MacOS 11.
if you're on Catalina or later, go to the download page and you'll find a link at the bottom for older versions

S.

--- EDIT: while i'm sure i saw this on their website previously, this seems to have now been removed. But you lose nothing by reaching out to support@vectornator.io and asking if you can obtain a version for Catalina...

If you're on a version older than Catalina then there is no hope* ;)

----
*Well, not unless you 'cheat'. It's not generally recommended for performance reasons but you can trick some older unsupported macs into installing newer OS's - not all older systems are supported. I did this once on a mac mini a while back and it worked OK - but it's a lengthy process. If you google it, you'll find tutorials on how to do this online and on youtube...

stam
Posts: 2679
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Create a button's icon with a part of a big image?

Post by stam » Fri Aug 19, 2022 3:27 pm

Just on this topic, i found a URL for downloading a version that works with Catalina or possibly earlier.
It won't be as snazzy as the latest versions and i have not tested this.

But it you want to give it at go @Zax, then download from here: http://cdn.vectornator.io/app-download/ ... 3-5-16.dmg

stam
Posts: 2679
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Create a button's icon with a part of a big image?

Post by stam » Fri Aug 19, 2022 3:32 pm

bn wrote:
Fri Aug 19, 2022 12:18 pm
Have yet to try it.
I'll be honest, it's standard fare for vector apps once you get into it... but i do like the interface and it may well make it easier for new users.
I'm extremely impressed that this is completely free....

Zax
Posts: 457
Joined: Mon May 28, 2007 10:12 am
Location: France
Contact:

Re: Create a button's icon with a part of a big image?

Post by Zax » Sat Aug 20, 2022 6:36 am

Thank you very much for the download link, stam.
3.5 version cann't still be installed on Sierra but nevermind, I did what I had to do with Inkscape. It was light and simple modifications of SVG files. If I want to make another card set, I will use PNG modified with Photoshop as proposed by richmond.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”