İptal Edildi

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

Beceriler: PHP

Daha fazlasını gör: 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

İşveren Hakkında:
( 42 değerlendirme ) Austin, United States

Proje NO: #126711

Bu iş için 5 freelancer ortalamada $30 teklif veriyor


Please check the PM.

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(27 Değerlendirme)

Check PMB for details, thanks!

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(10 Değerlendirme)

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

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(13 Değerlendirme)

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

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(9 Değerlendirme)

Please see PMB!!!

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(7 Değerlendirme)