Laravel Intervention Issue
$10-12 USD
Paid on delivery
I am getting the error "Unable to init from given binary data"
$img = '[login to view URL]';
$path = public_path() . "/storage/img/reviews/" . $img;
$thumbnailImage = TImage::make(file_get_contents($path));
$thumbnailPath = public_path().'/storage/img/reviews/thumbnails/' . $img;
$thumbnailImage->resize(150,150);
$thumbnailImage->save($thumbnailPath);
Then I did this code:
public function file_get_contents_curl($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_URL, $url);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
public function uploadThumbnail(){
$img = '[login to view URL]';
$path = public_path() . "/storage/img/reviews/" . $img;
$thumbnailImage = TImage::make($this->file_get_contents_curl(base64_decode($path)));
$thumbnailPath = public_path().'/storage/img/reviews/thumbnails/' . $img;
$thumbnailImage->resize(150,150);
$thumbnailImage->save($thumbnailPath);
}
I am getting the error "image source is not readable"
The image exists but the problem still happens. You are required to work remotely.
Project ID: #29374780
About the project
10 freelancers are bidding on average $16 for this job
- - - - READY TO START WORKING NOW - - - - Hi there! I have checked your project(Laravel Intervention Issue) description and understood the project needs. Still, I'm working(part-time) as a full-stack developer for More
Hello *‿*, #Expert Laravel 2+ years professional experience. # Available To start Work now ! (✨ Experience *‿* ✨) ~> 2+ Years Experience, I am working with Technology since 2018 ~> 30+ Projects done in Different Langu More
Dear Client, have an image intervention issue I can solve easily I'm laravel expert plz check my portfolio all webs in laravel https://www.freelancer.com/u/swapinfoway I have read your job description carefully and bui More
Hi, I have gone through the mentioned code and can help you to sort the issue. I am ready to work immediately on the project. I have 8+ years of experience with Laravel and can assure you to provide the most effective More
I have about 6 year exprence.I am web developer working with following languages php,laravel framework,javascript,ajax,jquery,mysql
Hello, sir. I hope you are doing well. I am very fond of the Laravel framework since it has powerful engines such as middleware, artisan, eloquent ORM, migration, and blade template, I have over 3 years of quality exp More