elboletaire / Watimage

:framed_picture: PHP image manipulation class
https://elboletaire.github.io/Watimage
Other
25 stars 17 forks source link

Images watermarked after being resized generate a corrupt file #27

Closed elboletaire closed 8 years ago

elboletaire commented 8 years ago

Due to changes in commit 1eea239600b452c9e93d78bd3e408bfd2f2d9c20

It seems that I need to take a closer look to resizeMin and reduce methods... it seems that I removed them without thinking it well :sweat_smile:

elboletaire commented 8 years ago

HHmmm... I've tried to revert those changes but doesn't seem to take any effect... I'd take a further look into it.

elboletaire commented 8 years ago

The problem was not updating the size after reducing the image. Adding a $this->updateSize() call fixed the issue.

Added tests for it; should not happen again.