I am trying to read image from the URL http://www.example.com/uploads/sample.jpg
using intervention library using this Intervention Make. But its giving me a blank object of the image.
$manager = new ImageManager();
$image = $manager->make($imgUrl);
And I am getting this object in the response.
Image {#543
#driver: Driver {#544
+decoder: Decoder {#545
-data: null
}
+encoder: Encoder {#546
+result: null
+image: null
+format: null
+quality: null
}
}
#core: gd resource @12
size: "1920x1080"
trueColor: true
}
#backups: []
+encoded: ""
+mime: "image/jpeg"
+dirname: null
+basename: null
+extension: null
+filename: null
}
How can i get read the file so that I can get proper information of the image.
Thanks.