Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you need to call imwrite() with a filename and an extension (so it can infer the type), like this:

 imwrite("my.png", img);