Cancelado

Script Converts Image Files to PNG

Ok, my scipt i currently use, [url removed, login to view] converts the jpg/gif images uploaded to png in the control panel. I would like the script to use .jpg for the media posts and not png.. Simply would seem like just stop from making it convert and set it up in admin files to use jpg. I read the code and dont understand why Louis the coder of the script insists on using png. Example of media posts can be found here [url removed, login to view] . just need the images JPG!

sample of the code where i think the issue is

-------------------------------------------------

if ($folder == "img/") {

$doit = "yes";

$path_parts = pathinfo($fname);

$ext = $path_parts["extension"];

$basename = str_replace(".".$ext, "", $path_parts["basename"]);

echo "Holy swiss cheese, we should convert this.<br />";

if ($ext == 'gif') {

$image = imagecreatefromgif($fname);

} else if ($ext == '.jpg') {

$image = imagecreatefromjpeg($fname);

} else {

echo "You put something in the img/ directory. It would have been converted if it had a .gif or .jpg extension, but it didn't. Pray to Louis Reingold, the supreme master of the universe, that it was a .png file.<br />";

$doit = "no";

}

if ($doit != "no") {

imagepng($image, $cfg['instdir']."img/".$basename.".png");

}

}

--------------------------------------------------

please ask any questions of if you would like to see more code let me know

Ok, I also have one other demand, i would like an image cropper imported into the script. I already have the code for the cropper from another script so this should be easy if you know what your doing! Now i been reading the png to jpg takes 5 seconds to fix which shouldnt cost $30!, so im supposing the $45 or so will go for both the import of the cropper and img fix. Else, fell free to update your bids. Thank You

Habilidades: PHP

Ver mais: master extension, louis reingold, to png, pray, png, media script, index media, img, image, image files, i pray, files to, ext, convert png, category index, www videos uploaded, images convert jpg, media sample, uploaded videos com, convert master, uploaded com videos, www videos com uploaded videos, can convert convert png, media convert, image folder

Acerca do Empregador:
( 42 comentários ) Austin, United States

ID do Projeto: #126711

5 freelancers estão ofertando em média $30 para este trabalho

ShimaSoft

Please check the PM.

$30 USD in 0 dias
(27 Comentários)
6.0
bbhsoft

Check PMB for details, thanks!

$30 USD in 0 dias
(10 Comentários)
5.1
izua

hello, please check pmb. I can do this in 5 minutes :)

$30 USD in 0 dias
(13 Comentários)
4.1
SOMNIVM

5 minutes? - 3 seconds!!! Your coder perhaps prefers PNG images (just like me), because PNG is a free image format and there is no compression data loss like in JPEG. Check your PM :)

$30 USD in 0 dias
(9 Comentários)
3.9
DeViAnThans3

Please see PMB!!!

$30 USD em 1 dia
(7 Comentários)
3.8