Skip to content

Do not resize when image is less than 8 bytes, add comments

Aleksei Lipniagov requested to merge alipniagov-comment-on-buffer-size into master

This MR addresses multiple small things related to the Image Scaler code:

  • It adds the comment on the buffer size selection and its impact
  • It falls back to the original file fast if the filesize < 8b, to remove the additional buffer size calculation logic
  • Adds test for the mentioned change
Edited by Aleksei Lipniagov

Merge request reports