Fermé

500 Internal server error when trying to call method imagerotate

Below is the script and its failing at line "$rotated = @imagerotate($dst_img, $angle, 0);"

<?php

function RotateJpg($filename = '',$angle = 0,$savename = false){

header('Content-type: image/png');

$original = @imagecreatefrompng($filename);

$srcsize = @getimagesize($filename);

$dest_x = 2000;

$dest_y = (2000 / $srcsize[0]) * $srcsize[1];

$dst_img = @imagecreatetruecolor($dest_x, $dest_y);

@imagecopyresampled($dst_img, $original, 0, 0, 0, 0,$dest_x, $dest_y, $srcsize[0], $srcsize[1]);

@imagedestroy($original);

$rotated = @imagerotate($dst_img, $angle, 0);

@imagedestroy($dst_img);

if($savename == false) {

header('Content-Type: image/png');

@imagepng($rotated);

}

else{

@imagepng($rotated,$savename);

}

imagedestroy($rotated);

}

RotateJpg('source_file',90,'destination_file');

?>

Compétences : CSS, PHP

Voir plus : additionally 500 internal server error error encountered trying, error error internal server error wordpress, magento 500 error internal server error, solve error internal server error, groupjive error internal server error, error internal server error world press, error internal server error magento, error internal server error click checkout virtuemart, wordpress 500 error internal server error can fix, internal server error oscommerce, cre loaded internal server error, fix 500 internal server error, fix internal server error, joomla internal server error moving site, groupjive internal server error

Concernant l'employeur :
( 44 commentaires ) Miami, United States

N° du projet : #12674895

35 freelance ont fait une offre moyenne de 23 $ pour ce travail

dreamci

Hello, expert developer ready to help you! Please check my profile and reviews and message me for discussion, thank you

30 $ USD en 1 jour
(161 Commentaires)
8.2
rajeshsonisl

Hello! With 98% to 99% completion rate, 900+ successfully completed projects, and a 4.99 reputation (maximum possible, 5.0) (can be verified on my profile page [url removed, login to view] !!)... y Plus

25 $ USD en 1 jour
(794 Commentaires)
8.3
letshappy

hello, i have more then 6 year experience in this field have a look to my reviews ready to start now thanks

35 $ USD en 1 jour
(120 Commentaires)
6.8
JunaidAhmed07

Hello Sir., I am ready to start it.i am highly interested in your project But i have some questions for you. So kindly leave message for me, then i'll discuss it in depth.

24 $ USD en 0 jours
(189 Commentaires)
6.8
xplorr007

Hello, I am available and interested to debug the error. Lets get it done. Looking forward to hear from you. Thanks

30 $ USD en 0 jours
(95 Commentaires)
6.5
diastark

Hello Sir/Mam, We have good experience of PHP,JOOMLA,HTML,HTML5,CSS,Ajax,jquesry,JavaScript,Mysql,Graphic Design,Website Design, Android,mobile application,Photoshop, Banner Design ,Flayer mail,Logo Design,wordpress,M Plus

60 $ USD en 1 jour
(199 Commentaires)
6.7
raman4sarika

Hello Sir/Mam, first of all, i want to wish from heart that you will select best freelancer for your work and your project should be complete as you need it. Now, accept my greetings for your project. I saw your requir Plus

24 $ USD en 0 jours
(271 Commentaires)
6.7
35 $ USD en 1 jour
(53 Commentaires)
6.4
glennwilkins

sir pm me im good in php my name is glenn i can fix this 500 internal error ................................

25 $ USD en 0 jours
(103 Commentaires)
5.9
25 $ USD en 1 jour
(106 Commentaires)
6.1
sr33raj

i can help you to resolve the imagerotate function issue on your seever its due to a missing liabrary

15 $ USD en 0 jours
(131 Commentaires)
5.8
phpfreelancer86

Hello Sir, I've reviewed your requirement and I'm ready to work with you. I will provide quality work as well full support for any query. I'm giving you trust for good quality work. I have almost 7+ years of expe Plus

20 $ USD en 0 jours
(107 Commentaires)
5.7
jinkhan888

[url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] http://seery Plus

25 $ USD en 1 jour
(63 Commentaires)
5.5
SuperbTechnology

I can fix it. pay me after fixing the issue. please chat with me to discuss further details. Thank you very much.

10 $ USD en 1 jour
(163 Commentaires)
5.5
25 $ USD en 1 jour
(45 Commentaires)
5.5
hemsingh1

Hi, PHP, HTML, SQL,CSS,Wordpress, Opencart, Magento, Prestashop,expert with over 5 years of experience. Can work and complete the task as specified. Understood the requirement. Ready to Start. Thanks Please visit my d Plus

35 $ USD en 1 jour
(51 Commentaires)
5.2
indiainfosoft

Hello Sir, I've reviewed your requirment and I'm ready to work with you. I will provide quality work as well full support for any query. I'm giving you trust for good quality work. I have almost 8+ years of exper Plus

17 $ USD en 0 jours
(75 Commentaires)
5.2
aimych1

no problem mate! i can solve this issue. i am expert i have 4 years experience contact me i am ready for work thanks

25 $ USD en 1 jour
(52 Commentaires)
5.5
25 $ USD en 1 jour
(28 Commentaires)
5.2
artashapinyan

Hello Mister i read details and see code .I can start now .Please you can send link .I hope will work together . Thanks in advance Regards Artash

15 $ USD en 0 jours
(61 Commentaires)
4.9