Is there any way to load image into the patch not using GEM?
-
How to place images into the patch?
-
Try [image], but be aware it only loads .gif, .ppm or .pgm files.
You can load an image directly via [image filename.gif], and you can open other images via [open filename2.gif(
Take care,
Gilberto -
Thank you so much.
Is it also possible to resize the image?
I tried [size w h( but it didn't seem to work.
-
@cuinjune Hi, indeed it seems that [size $1 $2( is broken, and I really don't know why.
-
As a side comment, I think that using .ppm files is the best choice. It's the only way I can get a good quality image.
(.gif works too, but image quality suffers a bit).
I live and love in Argentina
-
So, you cannot open a jpeg file in anyway in Puredata?
-
@raynovich you can open one as shown here http://forum.pdpatchrepo.info/topic/8616/jpeg-glitcher. however, I don't think you can load a jpeg directly into a Pd tk canvas. If GEM is installed you can view JPGs. http://puredata.info/downloads/gem/documentation/manual/manual/images
-
if you have tk8.6 installed you can display png images, but you have to edit the pd-gui.tcl file.
in third line there should be the path to the wish shell. You just need to change it to .../wish8.6. This worked for me on Archlinux. Then i loaded the image with moonlib/image.edit: Just tried it on my Ubuntu installation and it works but you have to start pd with:
pasuspender --\usr\lib\pd-extended\tcl\pd-gui.tcl %FIf you run pd with "pd-extended" it still uses tcl/tk8.5. I don't know why. Can somebody explain that behavior?
You can check your current tcl version used by pd with hcs/tcl-version. -
"[...] indeed it seems that [size $1 $2( is broken, and I really don't know why".
It's not broken. Let me show you what I mean by a really rude explanation.
You can keep visual track of the size of the selection area just by selecting everything.
Have a nice day!
I live and love in Argentina
-
@LandonPD you are totally right, Landon, I found that out after posting here. And by the way, have you ever tried the new [image] object in Pd-l2Ork? It's vastly superior to the one in pd-extended. I am attempting to compile it for pd-extended and Linux 64-bit, and if I succeed I will share it here. Take care! Gilberto
-
@gsagostinho said:
"I found that out after posting here".
Yes, I imagined that immediately. But I posted the wild pic all the same, so that our understanding of this popular object becomes better.
Cordially, Landon
I live and love in Argentina
-
Hi,
I there a way to load the GIF into a patch so that it sits under the all the workings of the patch? Like a background on the canvas?
Thanks
-
@gsagostinho said:
@LandonPD you are totally right, Landon, I found that out after posting here. And by the way, have you ever tried the new [image] object in Pd-l2Ork? It's vastly superior to the one in pd-extended. I am attempting to compile it for pd-extended and Linux 64-bit, and if I succeed I will share it here. Take care! Gilberto
Pd-l2ork/Purr Data have a bugfixed ggee/image that works pretty well and should handle pngs and I think jpegs, too. Both also have moonlib/image which has a more complicated interface and-- for trivial uses-- a small memory leak.
Purr Data also has
[draw image]
which has a transform method you can use to scale the image size, and[draw sprite]
to handle image sequences.