Lines Matching full:if
33 if (is_resource($this->image)) {
44 if ($this->extension !== 'jpeg') {
50 if (function_exists('exif_read_data')) {
53 if (!empty($exif['Orientation'])) {
60 if (preg_match('@\x12\x01\x03\x00\x01\x00\x00\x00(.)\x00\x00\x00@', $data, $matches)) {
63 … } else if (preg_match('@\x01\x12\x00\x03\x00\x00\x00\x01\x00(.)\x00\x00@', $data, $matches)) {
79 if ($orientation < 0 || $orientation > 8) {
83 if ($orientation <= 1) {
92 if (in_array($orientation, [3, 4])) {
95 if (in_array($orientation, [5, 6])) {
105 if (in_array($orientation, [2, 5, 7, 4])) {
112 //keep png alpha channel if possible
113 if ($this->extension == 'png' && function_exists('imagesavealpha')) {
149 if ($extension === 'jpg') {
152 if ($extension === '') {
156 if (!function_exists($saver)) {
160 if ($extension == 'jpeg') {
180 if ($info === false) {
189 if (!function_exists($creator)) {
196 if ($image === false) {
215 // create a canvas to copy to, use truecolor if possible (except for gif)
217 if (function_exists('imagecreatetruecolor') && $this->extension != 'gif') {
220 if (!$canvas) {
223 if (!$canvas) {
227 //keep png alpha channel if possible
228 if ($this->extension == 'png' && function_exists('imagesavealpha')) {
233 //keep gif transparent color if possible
234 if ($this->extension == 'gif') {
244 * If no transparency is found or the PHP does not support it, the canvas is filled with white
252 if (!function_exists('imagefill') || !function_exists('imagecolorallocate')) {
257 … if (!function_exists('imagecolorsforindex') || !function_exists('imagecolortransparent')) {
263 if (!$transcolor) {
287 * If widht and height are given, the new size will be fit within this bounding box.
288 * If only one value is given the other is adjusted to match according to the aspect ratio
300 if ($width == 0 && $height == 0) {
304 if (!$height) {
307 } else if (!$width) {
331 if ($dim && substr($dim, -1) == '%') {
353 if ($width == 0 && $height == 0) {
357 if (!$height) {
361 if (!$width) {
370 if ($newRatio >= 1) {
371 if ($newRatio > $oldRatio) {
379 if ($newRatio < $oldRatio) {
409 if (