Csound Csound-dev Csound-tekno Search About

PNG

Date2015-10-27 10:30
FromMenno Knevel
SubjectPNG
can the imageopcodes be modified to accept other image types besides .png?



--
View this message in context: http://csound.1045644.n5.nabble.com/PNG-tp5744750.html
Sent from the Csound - General mailing list archive at Nabble.com.

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-10-27 15:25
Fromjpff
SubjectRe: PNG
On Tue, 27 Oct 2015, Menno Knevel wrote:

> can the imageopcodes be modified to accept other image types besides .png?
>

Looking at the code one needs a library that can read any/more forma 
images as RGB data arrays,as it says in soure

>>
   imageData stores the image content as an array of RGB bytes for each
   row (l->r t->b) so a pixel value in imageData is located at: (w*y+x)*3.
>>

i am not a picture person (my experience is almost totally negative; as a 
studet I failed to drawa square o threr screen following an exanmple 
sheet)

soo ayone who sees have any ideasfor such a library?

==Jon ff

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-10-27 16:44
FromAnders Genell
SubjectRe: PNG
Perhaps imagemagic / magick-wand?

http://www.imagemagick.org/script/magick-wand.php

Regards,
Anders

> 27 okt 2015 kl. 16:25 skrev jpff :
> 
>> On Tue, 27 Oct 2015, Menno Knevel wrote:
>> 
>> can the imageopcodes be modified to accept other image types besides .png?
> 
> Looking at the code one needs a library that can read any/more forma images as RGB data arrays,as it says in soure
> 
>  imageData stores the image content as an array of RGB bytes for each
>  row (l->r t->b) so a pixel value in imageData is located at: (w*y+x)*3.
> 
> i am not a picture person (my experience is almost totally negative; as a studet I failed to drawa square o threr screen following an exanmple sheet)
> 
> soo ayone who sees have any ideasfor such a library?
> 
> ==Jon ff
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-10-27 16:55
FromMatti Koskinen
SubjectRe: PNG
> On 27 Oct 2015, at 6:44 pm, Anders Genell  wrote:
> 
> Perhaps imagemagic / magick-wand?
> 
> http://www.imagemagick.org/script/magick-wand.php
> 
> Regards,
> Anders
> 
>> 27 okt 2015 kl. 16:25 skrev jpff :
>> 
>>> On Tue, 27 Oct 2015, Menno Knevel wrote:
>>> 
>>> can the imageopcodes be modified to accept other image types besides .png?
>> 
>> Looking at the code one needs a library that can read any/more forma images as RGB data arrays,as it says in soure
>> 
>> imageData stores the image content as an array of RGB bytes for each
>> row (l->r t->b) so a pixel value in imageData is located at: (w*y+x)*3.
>> 
>> i am not a picture person (my experience is almost totally negative; as a studet I failed to drawa square o threr screen following an exanmple sheet)
>> 
>> soo ayone who sees have any ideasfor such a library?
>> 
>> ==Jon ff
>> 

if fltk is linked with csound, fltk depends on libjpeg and libtiff, so these should be available too, on OS X and Linux anyway

-m

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-10-27 17:13
Fromjpff
SubjectRe: PNG
Looks promising; now we need a programmer who understands something about 
images, ie not
==John ff

On Tue, 27 Oct 2015, Anders Genell wrote:

> Perhaps imagemagic / magick-wand?
>
> http://www.imagemagick.org/script/magick-wand.php
>
> Regards,
> Anders
>
>> 27 okt 2015 kl. 16:25 skrev jpff :
>>
>>> On Tue, 27 Oct 2015, Menno Knevel wrote:
>>>
>>> can the imageopcodes be modified to accept other image types besides .png?
>>
>> Looking at the code one needs a library that can read any/more forma images as RGB data arrays,as it says in soure
>>
>>  imageData stores the image content as an array of RGB bytes for each
>>  row (l->r t->b) so a pixel value in imageData is located at: (w*y+x)*3.
>>
>> i am not a picture person (my experience is almost totally negative; as a studet I failed to drawa square o threr screen following an exanmple sheet)
>>
>> soo ayone who sees have any ideasfor such a library?
>>
>> ==Jon ff
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-10-27 18:19
FromMenno Knevel
SubjectRe: PNG
;) yes lets wait a bit...
i will put this in the issue tracker.

It is only interesting for importing of different image types, think. It
would make the use of these opcodes faster, because now i have to do some
bash converting beforehand.
For exporting i am fine with using just the PNG format.



--
View this message in context: http://csound.1045644.n5.nabble.com/PNG-tp5744750p5744765.html
Sent from the Csound - General mailing list archive at Nabble.com.

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here