Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With newer versions of libpng (mine is 1.6.12) it will throw some form of error when using programs like imagemagick, gimp, etc. with a png image with a certain (incorrect?) color profile, sRGB IEC61966-2.1 specifically.
There is bug reports all over the web about this (mainly regarding GIMP, because it will actually refuse to save the image with that color profile), but apparently this is intentional behavoir from libpng, not a bug.
Anyway, the exact error imagemagick's convert will give out when converting is
convert: iCCP: known incorrect sRGB profile
example.png' @ warning/png.c/MagickPNGWarningHandler/1832.`This however is just a warning, it converts the image fine and returns a 0 exit status. The problem comes in with Tinyboard's way of handling imagemagick errors in inc/image.php apparently, any output is considered an error I think. Point is it would convert the image just fine, except Tinyboard sees that extra output as an error and will just take you to the error page, say "Failed to resize image", and won't let you post.
Please pull this, or if you want re-configure the way it would detect errors, I tried but I'm not that great of a programmer.