İptal Edildi

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

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);

}

}

Beceriler: Önyükleme, PHP, Yii

Daha fazlasını gör: clipbucket photo upload problem, oscommerce problem photo upload, photo upload form software customer, photo upload php, resize photo upload, photo upload resize, photo upload editor, photo upload via phone, html photo upload script, photo upload website, photo upload resize php, www photo upload script, myspace photo upload software, photo upload site, facebook java photo upload clone

İşveren Hakkında:
( 8 değerlendirme ) Fort St John, Canada

Proje NO: #14789279

Bu iş için 12 freelancer ortalamada $21 teklif veriyor

abbalove

Can I see the server that this issue happens on? Rocky Stay tuned, I'm still working on this proposal.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(34 Değerlendirme)
4.9
deepaklohani18

IDEA + My SKILL = SUCCESS. Full-Stack, Client-Oriented Developer Hi. I've gone through your requirement thoroughly and make sure that it is appropriate to me. Being a professional web developer, I have been develo Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(1 Yorum)
4.0
kalsariyavanraj

I am in expert in yii framework because it's my daily work. please come on chat and discuss with me. thanks. awaiting your reply.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(11 Değerlendirme)
3.5
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(7 Değerlendirme)
1.9
JSEngine

I had same problem and i fixed it easy. this code needs little change. Relevant Skills and Experience Im working on Yii and Codeigniter, but php is php everywhere. Stay tuned, I'm still working on this proposal.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(1 Yorum)
1.2
sanwarsumit

Hi, Let's discuss completely about all your requirements before making a final deal to start. I want to start this task as soon as possible beyond this I have more than four years of experience, in developing field Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(1 Yorum)
0.8
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(0 Değerlendirme)
0.0
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(0 Değerlendirme)
0.0
dsaha1656

if u give this project to me, I do promise I will give you offer on your next project given to me.

in %bids___i_period_sub_35% gün içinde15%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0
brendonstarc96

hi,,,,sir, i am expert in these type of technologies. because i am developer, i have 7 year's experience. Relevant Skills and Experience skills:- php wordpress j query video uploading video updating making these t Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(0 Değerlendirme)
0.0
softenter

I've fixed similar issue in one of my projects Relevant Skills and Experience I've fixed similar issue in one of my projects Proposed Milestones $10 CAD - Code review and identify exact cause $10 CAD - Fix issue and Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(0 Değerlendirme)
0.0
josechavarriacr

A proposal has not yet been provided

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% CAD
(0 Değerlendirme)
0.0