I have another question that is a little bit OT, inkscape only export bitmaps in png format, then I'd like to use imagemagicks for converting png to tiff, or even better svg to tiff, but it's very tricky, for the moment none of the tries I've done gave something satisfaying, the tiff image result after conversion: "imagemagicks myfile.png myfile.tiff" gives a totally gray result with pix_texture, in an image editor there doesn't seem to have an alpha channel, even with -channel RGBA option. Any hint would be very appreciated. (I've made these tries with Gem-0.90 dll, the 0.91 crashes too often)
Patrice Colet a écrit :
This test is successfull, thanks.
Jack a écrit :
Hello, I think that alpha channel only work with TIFF format in RVB 32 bit image. Have a look on the patch.
Jack
Le 22 oct. 07 à 16:14, Patrice Colet a écrit :
Hello, I've looked into pd-list archive and found this thread.
Is it possible to load a picture with an alpha channel with pix_image?
when I load such picture (both jpg and png) nothing happens (no console message), no image is loaded. My RGBA pictures are made with inkscape.
Hi Patrice,
I did a quick test and GIMP will convert a transparent PNG to TIF fine. I don't have Gem working on this machine to test loading the tif, but I can confirm it shows transparency. "convert" did do something strange to the png file when converting to tif I can see...
send me your tif if you still can't get it to work and I'll see if I can confirm your troubles.
.b.
Patrice Colet wrote:
I have another question that is a little bit OT, inkscape only export bitmaps in png format, then I'd like to use imagemagicks for converting png to tiff, or even better svg to tiff, but it's very tricky, for the moment none of the tries I've done gave something satisfaying, the tiff image result after conversion: "imagemagicks myfile.png myfile.tiff" gives a totally gray result with pix_texture, in an image editor there doesn't seem to have an alpha channel, even with -channel RGBA option. Any hint would be very appreciated. (I've made these tries with Gem-0.90 dll, the 0.91 crashes too often)
Patrice Colet a écrit :
This test is successfull, thanks.
Jack a écrit :
Hello, I think that alpha channel only work with TIFF format in RVB 32 bit image. Have a look on the patch.
Jack
Le 22 oct. 07 à 16:14, Patrice Colet a écrit :
Hello, I've looked into pd-list archive and found this thread.
Is it possible to load a picture with an alpha channel with pix_image?
when I load such picture (both jpg and png) nothing happens (no console message), no image is loaded. My RGBA pictures are made with inkscape.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hello,
Patrice Colet a écrit :
I have another question that is a little bit OT, inkscape only export bitmaps in png format, then I'd like to use imagemagicks for converting png to tiff, or even better svg to tiff, but it's very tricky, for the moment none of the tries I've done gave something satisfaying, the tiff image result after conversion: "imagemagicks myfile.png myfile.tiff" gives a totally gray result with pix_texture, in an image editor there doesn't seem to have an alpha channel, even with -channel RGBA option.
imagemagick is quite strange with tiff export. you have to manually add some option in order to have a valid tiff file. you can find the correct option somwhere on the net.
then, Gem load this file with no problem.
cyrille
Any hint would be very appreciated. (I've made these tries with Gem-0.90 dll, the 0.91 crashes too often)
Patrice Colet a écrit :
This test is successfull, thanks.
Jack a écrit :
Hello, I think that alpha channel only work with TIFF format in RVB 32 bit image. Have a look on the patch.
Jack
Le 22 oct. 07 à 16:14, Patrice Colet a écrit :
Hello, I've looked into pd-list archive and found this thread.
Is it possible to load a picture with an alpha channel with pix_image?
when I load such picture (both jpg and png) nothing happens (no console message), no image is loaded. My RGBA pictures are made with inkscape.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hello Ben, Cyrille, I answer to both for not flooding the list.
cyrille henry a écrit :
imagemagick is quite strange with tiff export. you have to manually add some option in order to have a valid tiff file. you can find the correct option somwhere on the net.
then, Gem load this file with no problem.
I didn't find any option that enables the alpha channel in tiff files, I've tried -channel RGBA -matte, -alpha, ... there is no hint on the net for that.
B. Bogart a écrit :
I did a quick test and GIMP will convert a transparent PNG to TIF fine. I don't have Gem working on this machine to test loading the tif, but I can confirm it shows transparency. "convert" did do something strange to the png file when converting to tif I can see...
send me your tif if you still can't get it to work and I'll see if I can confirm your troubles.
.b.
I'll use the batch mode of gimp since IM can't do this job, attached are three images, thesource.png, theresult.tiff, whatIwouldliketohave.tif
Hi Patrice,
ImageMagick on my debian etch machine does exactly what your wanting it to, I suppose perhaps you have an older version of imageMagick?
The attached screenshot shows my imageMagick version, and that it does indeed work for me.
Tested in Gem and it indeed works.
Not sure what is wrong on your end.
.b.
Patrice Colet wrote:
Hello Ben, Cyrille, I answer to both for not flooding the list.
cyrille henry a écrit :
imagemagick is quite strange with tiff export. you have to manually add some option in order to have a valid tiff file. you can find the correct option somwhere on the net.
then, Gem load this file with no problem.
I didn't find any option that enables the alpha channel in tiff files, I've tried -channel RGBA -matte, -alpha, ... there is no hint on the net for that.
B. Bogart a écrit :
I did a quick test and GIMP will convert a transparent PNG to TIF fine. I don't have Gem working on this machine to test loading the tif, but I can confirm it shows transparency. "convert" did do something strange to the png file when converting to tif I can see...
send me your tif if you still can't get it to work and I'll see if I can confirm your troubles.
.b.
I'll use the batch mode of gimp since IM can't do this job, attached are three images, thesource.png, theresult.tiff, whatIwouldliketohave.tif
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list