We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey all,
I'm trying to write a program that reduces the size of an image by a predetermined factor. My program has to load an image file into a PImage, construct a new PImage, eight times smaller in every dimension, with the scaled content, and save that new PImage to disk.
Saving an image with save() works but i'm struggling to simultaneously rescale as well. Is it possible to use resize() with save() to achieve this? Or is there perhaps a more efficient way of going about doing this?
Any help would be greatly appreciated! Thanks
Answers
https://Processing.org/reference/PImage_resize_.html
https://Processing.org/reference/PImage_save_.html
What @GoToLoop implied in his last post is that it should work using resize and save. Can you provide more details about your struggle? What do you mean? It doesn't work?
Kf