6

Screw some PHP builtin functions, why does imagecreatefrompng require a quality modifier between 0 and 9 and imagecreatefromjpeg one from 0 to 100, makes no sense!

Comments
  • 4
    It's format-specific. With all my hate against PHP, this one's not their fault.
  • 1
    @gronostaj @jespersh ah I see, I have a functionality that automatically chooses a function based on an image's mime type and uses a qualityModifier property that is injected.

    Thanks for the info, now I simply added a small calculation to calculate whether it should have quality or compression :)

    My apologies for the unjustified rant
Add Comment