Re: Image processing, getting started?

2019-06-20 Thread JmageK
Jun 20, 2019, 12:20 PM by gpor...@yahoo.com: > Hi! > > This is cool! > > Maybe you need to convert the images to PPM first? Or you can create or use > exisiting C library to get the right format you want :) > > Yeah, PPM is a simple format. But for now I will try working without converting 1st.

Re: Image processing, getting started?

2019-06-20 Thread JmageK
Jun 20, 2019, 12:23 PM by a...@software-lab.de: > On Thu, Jun 20, 2019 at 08:46:13AM +0200, Alexander Burger wrote: > >> (in "file" >> (make >> (do (car (info "file")) >> (link (rd 1)) ) ) ) >> > Sorry, this is unnecessarily complex. > Right, but good to know there's a built in way to get file

Re: Image processing, getting started?

2019-06-20 Thread Alexander Burger
On Thu, Jun 20, 2019 at 08:46:13AM +0200, Alexander Burger wrote: >(in "file" > (make > (do (car (info "file")) > (link (rd 1)) ) ) ) Sorry, this is unnecessarily complex. Better is (in "file" (make (while (rd 1) (link @) ) ) ) ☺/

Re: Image processing, getting started?

2019-06-20 Thread George Orais
Hi! This is cool! Maybe you need to convert the images to PPM first? Or you can create or use exisiting C library to get the right format you want :) BR, geo > On Jun 20, 2019, at 3:24 PM, JmageK wrote: > > Hi, all! > I was recently thinking, 'How can you do image processing in picolisp'

Re: Image processing, getting started?

2019-06-20 Thread Alexander Burger
Hi JmageK, > I was recently thinking, 'How can you do image processing in picolisp' Like > reading a file, changing some color values, etc. > : (in"file.jpg"(do 9 (prinl (rd]or > : (in"file.jpg"(do 40(PR(rd]For now just knowing how to read the file > contents as an array of color values like if

Image processing, getting started?

2019-06-20 Thread JmageK
Hi, all! I was recently thinking, 'How can you do image processing in picolisp' Like reading a file, changing some color values, etc. I tried a basic PNG & jpg file. Using rd it does read but I'm getting binary output in terminal. And if I try it for a high value (when using jpg) pil crashes :