We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45078
    • 34 Posts
    I've recently started to see the following error where any :phpthumbof modifiers are used:

    Fatal error: Call to undefined method Imagine\Gd\Image::scale() in [removed]/core/components/resizer/model/resizer.class.php on line 337

    Anyone know what's occurring here?
      • 45078
      • 34 Posts
      Changing the setting phpthumbof.use_resizer to 'No' stopped the error. I'll just keep it off, but thought I should make a post regardless.
        • 35150 ☆ A M B ☆
        • 191 Posts
        Hrm, sorry about that! On line 765 of core/components/resizer/model/Imagine/Gd/Image.php try removing final (which really shouldn't be there). So the line should be:
        public function scale(BoxInterface $size)


        Or if you'd rather, try out a pre-release version of 1.0.0. I've reworked quite a bit of it, however I still need to update the documentation.
        Also you'll get better performance if you have Imagick installed; GD is kind of primitive. Though if you're on shared hosting you may not have any control over what's installed. I'm going to add in the documentation about how to build ImageMagick for best performance...
          Extras :: pThumb • Resizer • imageSlim • setPlaceholders