Image file (jpeg. or png.) into max ??

hr_bak's icon

Hi,
Is it possible to import an image file (jpeg. or png.) and have it as part of the patch ? Can't seem to find info on this anywhere :)
Thanks,
Rasmus

Hugobox's icon

Use the fpic object and then in the inspector you can tick the Embed Image in Patcher checkbox!

hr_bak's icon

Cool...Thanks ! :) Is there any way i can get rid of / hide the box (dotted line) around the image, or am i stuck with this ?

Hugobox's icon

When you lock the patcher it should dissapear

exeterdown's icon

Is it possible to manipulate jpg images like videos?
For example: have one constantly scroll sideways in a loop, and change its dimensions by cropping it?

foldh's icon

Hi, yes you can do that quite easily. Just load your image into jit.movie and you can use any jit. objects, including Vizzie modules.

Attached a simple patch that uses Vizzie objects for to pan and cropping effects. Nothing fancy but I hope it helps.

Cheers

Max Patch
Copy patch and select New From Clipboard in Max.

Paul

Roger's icon

Hi Paul, larger images don't load, is there a way to get large jpegs, 80 MB + into a jit.movie?

foldh's icon

Hi Roger, I've never tried it with such a large jpeg (I don't think I have any images that large). I'll try take a look and let you know if I can see how to make it work.

riccardo dapelo's icon

Why larger images do'nt load? I think they should. But do you really need a 80mb+ image? I did some theatrical projections and used maximum 10, 20 MB.
Anyway try to load the images as texture (see patcher) and manipulate with vizzie.

Max Patch
Copy patch and select New From Clipboard in Max.

riccardo dapelo's icon

Sorry, i made a mistake in the patcher: inverted the gate inlet. This is the correct one

Max Patch
Copy patch and select New From Clipboard in Max.

Roman Thilenius's icon

the problem is the size limit of jitter matrixes in general i think. but in this case it might work in GL.

the ancient macintosh based .pict format also had a size limit of 4000*4000.

80 mb are about 5000*5000 pixel (32 bit, RGB) - but that is uncompressed, i.e. in RAM. if a jpeg file is that long, it is probably 8 times bigger, which would be quite a lot for a video format. ;)