Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Image background color
  • take this piece of code as example
      // build img config
        $image = Image::forge(array(
            'quality'  => 100,
         'driver'   =>'gd',
         'bgcolor'  => '#fff',
         'filetype' => 'jpg',
        ));
    
        // Edit image  to create our  512 x 512 img
        $image->load($editImage) // load image
             ->resize($imageWidth, $imageHeight, true, true)//resize image
             ->crop($cropX, $cropY, $cropX2, $cropY2)// crop image 
             ->save($editDir.$imgParts[0]."_512.".$imgParts[1]);
    

    not matter what i do i end up with a black background color. Any ideas or suggestions ?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!