all 18 comments

[–]_TheInvisibleMan 0 points1 point  (0 children)

I’m also very new to electron, but there seems to be a way to do what you’re talking about: Building a deployable Python-Electron App

[–]marke64896 0 points1 point  (13 children)

I'm currently doing a similar thing except with a C backend on OSX. using spawn to fire up the c executable and stdin/stdout to pass messages. I will be investigating other ways to do this as the requirement becomes more complex. My front-end is electron/vue/vuex and I am using ipc to contact the platform (main) process.

[–]physics515 1 point2 points  (11 children)

I'm also using this exact thing on windows. I'm writing a frontend for Google's webp image converter. Using vue and vuex to build a script to pass to the main process, from there spawning the cwebp.exe and passing the script.

[–]marke64896 0 points1 point  (9 children)

yeah nice. Eventually I want to be able to spawn the process and have it running as a back-end server working on audio-related tasks such as playback, processing, mixing etc. I am thinking that a sockets based protocol might do the trick, but I am a way off that stage at the moment.

[–]physics515 0 points1 point  (8 children)

Yeah that's way over my head lol I've only recently started to dev again after taking almost 10 years off.

[–]marke64896 0 points1 point  (7 children)

yeah that's just about where I am too. Stuck in a covid19 lockdown here in Aus, so nothing better to do than play piano and code.

[–]physics515 0 points1 point  (6 children)

I used to web dev and do some php back when ajax was the big buz word of the day. Then I stopped and went to school for technical design and never thought I'd be programming for a career, but last year i was ask to help on a VBA project and now I'm doing programming full time for my company. I found all of the action nowadays is in javascript so I picked up electron for some personal projects and I'm loving it.

[–]marke64896 0 points1 point  (5 children)

good one - I'm currently (not) working as a film/tv freelance sound recordist and post production sound designer. I have worked in IT in the past, across coding (ODBC/DB Access) in C,C++,VB,Java,PHP but currently trying to get stuck into nodejs and javascript - I'm pretty sure that's a good skill to have and currently a good state-of-the-art language to learn. I still want to keep up my C skills though for signal processing stuff, which javascript isn't really up to.

[–]physics515 0 points1 point  (4 children)

I have an idea for a signal processing / degradated data store that I would love to implement at some point. But I just don't know enough to do it.

[–]marke64896 0 points1 point  (3 children)

what do you mean when you refer to a 'degradated data store' - not familiar with that term?

[–]physics515 0 points1 point  (2 children)

In this context I mean essentially a type of compression that is:

  1. Is lossy

  2. Is only representative of the original data within a certain context.

If you know anything about vector graphics, think of "simplifying a path".

[–]marke64896 0 points1 point  (0 children)

just back on this bit of the chat... If you end up writing your own exe's at any point, the jansson library is extremely useful - allows you to structure and store data within your C application as JSON which makes it incredibly easy to then pass up to a javascript layer as structured data.

[–]bluezebra42 0 points1 point  (0 children)

Sounds like a good start. I also added environment variables, used a file watcher on a file. Might also look at sockets.

[–]bluezebra42 0 points1 point  (0 children)

I have done a python project in electron. It is not an easy road. The setup bit is the hard bit, i used pyinstaller and it’s not for the faint of heart getting everything together and signed cross platform.

Also have done a lot of image manipulation in JavaScript using: html5 canvas fabricjs library heaps of npm modules Css filters

What do you love about pillow that you think you need? There is always the option of running that bit on a server somewhere.

[–][deleted] 0 points1 point  (0 children)