Find Jobs
Hire Freelancers

Photo upload orientation--- $10 to solve this problem

$10-30 CAD

Imeghairiwa
Imechapishwa over 6 years ago

$10-30 CAD

Kulipwa wakati wa kufikishwa
The code below makes photos display on site with the right orientation. The problem is that some jpeg/jpg that DO NOT need orientation just gets stuck at 100% upload (no errors.) This is in the model: public function saveFile($attribute) { $path = Yii::getAlias('@app/' . Videos::FILE_PATH_LOCAL); $this->uid = VideosHelper::generateUniqueIdHash(); $this->video_extension = $this->video->extension; $this->video_file = $path . '/' . $this->uid . '.' . $this->video_extension; if (!$this->video->saveAs($this->video_file)) { $this->addError($attribute, 'Error save video.'); } else { if($this->video_extension == 'jpeg' || $this->video_extension == 'jpg') { VideosHelper::fixImageOrientation($this->video_file); } } } This is in the helper: public static function fixImageOrientation($filename) { $exif = exif_read_data($filename); if (!empty($exif['Orientation'])) { $image = imagecreatefromjpeg($filename); switch ($exif['Orientation']) { case 3: $image = imagerotate($image, 180, 0); break; case 6: $image = imagerotate($image, -90, 0); break; case 8: $image = imagerotate($image, 90, 0); break; } imagejpeg($image, $filename, 90); } }
Kitambulisho cha mradi: 14782451

Kuhusu mradi

8 mapendekezo
Mradi wa mbali
Inatumika 7 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
8 wafanyakazi huru wana zabuni kwa wastani $25 CAD kwa kazi hii
Picha ya Mtumiaji
CLICK ON CHAT , SO I CAN SHOW MY EXPERIENCE REGARDING THE PROJECT. PHP and Wordpress,DRUPAL, LARAVEL, MAGENTO,CODEIGNITOR, IONIC, Mobile Apps, PSD to HTML , Amazon and ebay web services Relevant Skills and Experience CLICK ON CHAT , SO I CAN SHOW MY EXPERIENCE REGARDING THE PROJECT. PHP and Wordpress,DRUPAL, LARAVEL, MAGENTO,CODEIGNITOR, IONIC, Mobile Apps, PSD to HTML , Amazon and ebay web services Proposed Milestones $10 CAD - 1
$10 CAD ndani ya siku 1
5.0 (4 hakiki)
4.4
4.4
Picha ya Mtumiaji
hi, I am expert in you framework. so I will resolved quickly it. please come in chat and discuss with me.
$30 CAD ndani ya siku 1
5.0 (12 hakiki)
4.0
4.0
Picha ya Mtumiaji
Hi we are a company working here in freelancer, we have expertise team working on our projects from last 13yrs, we biding for low just because we need reviews & ratings and to showcase our work. Relevant Skills and Experience Woocommerce - Wordpress Hardening - Wordpress Migrations - Data Mining - Server Management - Web Scraping - Website Designing - Website Maintenance - Android Development - Yii 2 Framework Development Proposed Milestones $17.5 CAD - we feel we are the best team to handle this project we will try to deliver our best part. $17.5 CAD - we feel we are the best team to handle this project we will try to deliver our best part.
$35 CAD ndani ya siku 1
5.0 (20 hakiki)
3.7
3.7
Picha ya Mtumiaji
A proposal has not yet been provided
$30 CAD ndani ya siku 1
5.0 (5 hakiki)
2.8
2.8
Picha ya Mtumiaji
We are experts in Prestashop, Magento, WooCommerce, Oscommerce , Wordpress, Joomla, Web Hosting Panels Programming .. Relevant Skills and Experience We do Website Design, Web Applications, Logo Designs, Database related applications and Automations. Totally 18 years IT Experience and done 170 Projects -27 Clients Proposed Milestones $12.5 CAD - initial milestone $12.5 CAD - final
$25 CAD ndani ya siku 1
5.0 (1 hakiki)
2.5
2.5
Picha ya Mtumiaji
A proposal has not yet been provided
$25 CAD ndani ya siku 1
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya CANADA
Fort St John, Canada
5.0
14
Njia ya malipo imethibitishwa
Mwanachama tangu Jan 5, 2017

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.