Find Jobs
Hire Freelancers

Fix image resizing and cropping with php

$10-20 USD

Ditutup
Dibuat hampir 5 tahun yang lalu

$10-20 USD

Dibayar ketika dikirim
t is urgent : I need to fix images cropping and resizing in php and display them in a responsive gallery Link : [login to view URL] We want to show channels images in a grid mode (responsive) with a specific image ratio : When the user upload the image, the script resize and crop it. We want to fix it to crop the maximum width or height of the image and resize it. Bid only if you can do it this is a part of the resize function : function PT_Resize_Crop_Image($max_width, $max_height, $source_file, $dst_dir, $quality = 100) { $imgsize = @getimagesize($source_file); $width = $imgsize[0]; $height = $imgsize[1]; $mime = $imgsize['mime']; switch ($mime) { case 'image/gif': $image_create = "imagecreatefromgif"; $image = "imagegif"; break; case 'image/png': $image_create = "imagecreatefrompng"; $image = "imagepng"; break; case 'image/jpeg': $image_create = "imagecreatefromjpeg"; $image = "imagejpeg"; break; default: return false; break; } $dst_img = @imagecreatetruecolor($max_width, $max_height); $src_img = $image_create($source_file); $width_new = $height * $max_width / $max_height; $height_new = ($width * $max_height / $max_width) * 1.29; if ($width_new > $width) { $h_point = (($height - $height_new) / 2); @imagecopyresampled($dst_img, $src_img, 0, 0, 0, $h_point, $max_width, $max_height, $width, $height_new); } else { $w_point = (($width - $width_new) / 2); @imagecopyresampled($dst_img, $src_img, 0, 0, $w_point, 0, $max_width, $max_height, $width_new, $height); } @imagejpeg($dst_img, $dst_dir, $quality); if ($dst_img) @imagedestroy($dst_img); if ($src_img) @imagedestroy($src_img); } Thank you !
ID Proyek: 20237338

Tentang proyek

11 proposal
Proyek remot
Aktif 5 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
11 freelancer menawar dengan rata-rata $24 USD untuk pekerjaan ini
Avatar Pengguna
I have read the description  and I can fix image size in php as per your requirements. I have two years of web development experience. I can do it asap.
$13 USD dalam 1 hari
5,0 (746 ulasan)
7,2
7,2
Avatar Pengguna
Sir, i visited your website and check your paste code, i will complete job to crop channel images while user uploading i am available to star work now and finish within few hours. Thanx
$15 USD dalam 1 hari
5,0 (46 ulasan)
6,7
6,7
Avatar Pengguna
Hi I am software engineer and full stack PHP developer your project is looking very interesting and I am looking forward to your message
$20 USD dalam 1 hari
4,9 (160 ulasan)
6,7
6,7
Avatar Pengguna
⭐Dear Sir⭐ Nice to meet you. I am interesting in your project. I can build your project perfectly with my experience. I am full time developer and my goal was always delivery perfectly results on time. I will do my best for you. Hope to hear you soon. ---⭐⭐⭐---
$50 USD dalam 3 hari
4,9 (133 ulasan)
6,1
6,1
Avatar Pengguna
Dear client, how have you been? I've read your project description carefully. Presenting this proposal with 100% confident. How about discuss in chat? Waiting for your reply. Best regards.
$25 USD dalam 1 hari
4,6 (30 ulasan)
4,9
4,9
Avatar Pengguna
can I help you? I do many projects. You can contact with me via gmail: tuankiet2605 or skype: tuankiet2605. thanks.
$35 USD dalam 1 hari
5,0 (3 ulasan)
3,7
3,7
Avatar Pengguna
Hello, My name is Doncho Indzhov. I am a web developer 6 years. I have skills with PHP5, HTML5, CSS3, Javascript, Jquery and more. My personal portfolio is www.donchoindzhov.com. You can check some of my last projects in Freelancer.com Profile - Portfolio section. I work for one company 3 years I do not here in Freelancer.com. Now I start working again and hope you have the interest to work together. Thanks, Best wishes!
$20 USD dalam 1 hari
5,0 (2 ulasan)
2,2
2,2
Avatar Pengguna
Hi there, I have checked the details. I have rich experience with CSS, HTML, Javascript, PHP. Please initiate the chat so we can discuss this job in detail. I am new to freelancer.com but I assure you that I can deliver your work in the best possible way. Best Regards
$20 USD dalam 5 hari
5,0 (1 ulasan)
1,4
1,4
Avatar Pengguna
Hi There, Am a full stack developer having 9+ years in software and web development. I can achieve your requirements in high quality, performance and to be satisfied.
$20 USD dalam 3 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
Hello, so do you know what size you want/need the image to be for the responsive display? If you do, please provide me that info for the purposes of the script. That way I can define the ratios for the crop prior to re-sizing the image. Thanks!
$25 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera HAITI
Croix-des-Bouquets, Haiti
5,0
45
Memverifikasi Metode pembayaran
Anggota sejak Mar 21, 2013

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.