Keith Lock
Forum Replies Created
-
Seems support hasn’t been around in awhile. I ended up just editing the
class.og-image-gd.phpto get it to work. Not the best idea of course, but I wanted to move on with it.I changed:
imagejpeg(imagescale($this->resource, $this->manager->width, $this->manager->height, IMG_BICUBIC_FIXED), $this->target, $quality);to:
imagejpeg($this->resource, $this->target, $quality);…effectively bypassing
imagescaleand got things to work.I don’t know the issue, but I am settling with this workaround for now.
I got as far as learning that it is
imagescalethat is returningfalse( hence the warning: “PHP Warning: imagejpeg() expects parameter 1 to be resource, bool given in /var/web/staging/public_html/wp-content/plugins/branded-social-images/lib/class.og-image-gd.php on line 333”Still digging.
Also, phpinfo shows:
GD Support enabled GD headers Version 2.3.3 GD library Version 2.3.3 FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled GIF Create Support enabled JPEG Support enabled PNG Support enabled WBMP Support enabled XPM Support enabled XBM Support enabled WebP Support enabled BMP Support enabled TGA Read Support enabled Directive Local Value Master Value gd.jpeg_ignore_warning 1 1