There are lots of examples of encoding images to Base64. Is there a way of changing the size or resolution of that image by simply manipulating the actual base64 encoded content?
Your base64 code might be:
iVBORw0KGgoAAAANSUhEUgAAAWQAAAFjCAIAAACFfObPAAAAA3NCSVQICAjb4U/gAAAgAE...
Is there an algorithm or equation that allows you to manipulate that Base64 string to change the size of the image or change the resolution?
My question is aimed at people looking at progressive images, data manipulation, and WebP formats, which is a lossless and lossy compression of images.
I am not interested in creating Canvas elements and manipulating the contents of the canvas. I am interested in an approach that can be used either on the client or server and can be sent via HTTP or socket communication.
img = base64_encode(mangle_image(base64_decode(orig_image));
b64 is wrapping paper around a present. you don't fiddle with the wrapping paper in the hopes of changing the unwanted barbie doll into a hotwheels car. – Microbe