StormBreaker
Registered
Как да променя качеството на jpg изображение? :roll:
Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
ahl каза:Влизаш в "paint" натискаш Файл>Отвори и отваряш картината после я сейфат "Saveas..." и отдоло пишеш име а отдоло дето е Bmp формат го избираш на друг
A ти какво искаш от 1 картинка да кажем gif да я превърнеш в jpg ? :roll:StormBreaker каза:ahl каза:Влизаш в "paint" натискаш Файл>Отвори и отваряш картината после я сейфат "Saveas..." и отдоло пишеш име а отдоло дето е Bmp формат го избираш на друг
OMG В раздела за PHP съм го пуснал - това да ти говори нещо? :lol: :lol: :shock:
NewGuy каза:A ти какво искаш от 1 картинка да кажем gif да я превърнеш в jpg ? :roll:StormBreaker каза:ahl каза:Влизаш в "paint" натискаш Файл>Отвори и отваряш картината после я сейфат "Saveas..." и отдоло пишеш име а отдоло дето е Bmp формат го избираш на друг
OMG В раздела за PHP съм го пуснал - това да ти говори нещо? :lol: :lol: :shock:
Here is sample function that creates thumbnail of source JPEG file. Thumbnail wil be in square form (with and height are the same), and original image cropped to fit in.
Parameters:
$p_thumb_file - name of the file (including path) where thumb should be saved to
$p_photo_file - nam of the source JPEG file (including path) thatthumbnail should be created of
$p_max_size - with and height (they will be the same) in pixels for thumbnail image
$p_quality - quality of jpeg thumbnail
Код:<?php function photoCreateCropThumb ($p_thumb_file, $p_photo_file, $p_max_size, $p_quality = 75) { $pic = @imagecreatefromjpeg($p_photo_file); if ($pic) { $thumb = @imagecreatetruecolor ($p_max_size, $p_max_size) or die ("Can't create Image!"); $width = imagesx($pic); $height = imagesy($pic); if ($width < $height) { $twidth = $p_max_size; $theight = $twidth * $height / $width; imagecopyresized($thumb, $pic, 0, 0, 0, ($height/2)-($width/2), $twidth, $theight, $width, $height); } else { $theight = $p_max_size; $twidth = $theight * $width / $height; imagecopyresized($thumb, $pic, 0, 0, ($width/2)-($height/2), 0, $twidth, $theight, $width, $height); } ImageJPEG ($thumb, $p_thumb_file, $p_quality); } } ?>