I am attempting to shrink the size of one image without losing quality so I can place that shrunk image within a different image.
In my attempts to shrink: quality was demolished.
So my ingenious idea: Just grow the larger image size by the amount I would have shrunk the smaller image, so neither of the images lose quality!
AND IT WORKED!....EXCEPT now that one megabyte image became 100 megabytes. So...slight issue there.
I am using nodejs. How can I shrink this image without losing quality?
EDIT: I tried using sharp to reduce image size without reducing quality....not strong enough at alll. The image reduction is by a factor of 10. So, I need some other way to be able to put one image within another.
EDIT #2: I have an observation...and a half thought through theory. The observation: Apps like google docs or google slides, where I can resize images and place them within others without losing quality(at least not noticable, no matter the shrink amount). Thus, if that can be replicated... My theory that is separate: If I can somehow use seam carving alongside a third reference image, something might happen and it might work. If, there is a white image(the reference image) that is 10000px by 10000px, and I then place the regular 1000px by 1000px image within it, would seam-carving not then be able to turn that white image into a 1 by 1 pixel since it is all white? But then leave the actual image untouched? Thus, if I can somehow maintain that base white image, and place the other image supposedly inserted inside the prior...into the image with the reference as the white image...it might work?