I managed to write the correct output file headers, but when I went to actually implementing the resize logic, things got a bit complicated.
I can pretty much understand factors of resize bigger than 1,but there is absolutely no way I can find out a way to implement the logic behind less than one factors.
I feel like there is no way to do the task precisely since there is too much about finding the "right" pixels to not replicate on the new image.
I tried watching Computerphile bilinear/bicubic interpolation video but there is something else they seem to be missing.
I would appreciate very much if someone could clarify how this pixel information loss could be handled from a logic point of view, if that make sense.
Thanks in advance!