![]() |
[مشكلة] تصغير ثم اقتصاص الصورة السلام عليكم ورحمة الله - مسودة حل المشاكل لغة البرمجة: بي اتش بي عندي صورة اصغرها بعد رفعها ثم اقتص منها الزائد لتكون بالمجمل 600 بكسل في 400 بكسل التصغير يتم بشكل جيد لكن لا يتم اقتصاص الجزء الزائد رمز PHP: // resize $resize_image_bground[big] = imagecreatetruecolor($new_width[big],$new_height[big]); imagecopyresampled($resize_image_bground[big],$orignal_image,0,0,0,0,$new_width[big],$new_height[big],$width,$height); $resize_image = imagejpeg($resize_image_bground[big],"$path_big_images$image_name",100); // crop $crop_image_bground[big] = imagecreatetruecolor($big_width, $big_height); imagecopyresampled($crop_image_bground[big],$resize_image,0,0,250,0,$big_width,$big_height,$new_width[big],$new_height[big]); $resized_big1 = imagejpeg($crop_image_bground[big],"$path_big_images$g$image_name",100); |
الساعة الآن 07:34 PM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir