Lines Matching full:if
34 if (is_resource($this->image)) {
44 if ($this->extension !== 'jpeg') {
57 if ($orientation < 0 || $orientation > 8) {
61 if ($orientation <= 1) {
71 if (in_array($orientation, [3, 4])) {
82 if (in_array($orientation, [2, 5, 7, 4])) {
86 if ($image !== $this->image) {
91 //keep png alpha channel if possible
92 if ($this->extension == 'png' && function_exists('imagesavealpha')) {
128 if ($extension === 'jpg') {
131 if ($extension === '') {
135 if (!function_exists($saver)) {
139 if ($extension == 'jpeg') {
159 if ($info === false) {
168 if (!function_exists($creator)) {
175 if ($image === false) {
194 // create a canvas to copy to, use truecolor if possible (except for gif)
196 if (function_exists('imagecreatetruecolor') && $this->extension != 'gif') {
199 if (!$canvas) {
202 if (!$canvas) {
206 //keep png alpha channel if possible
207 if ($this->extension == 'png' && function_exists('imagesavealpha')) {
212 //keep gif transparent color if possible
213 if ($this->extension == 'gif') {
223 * If no transparency is found or the PHP does not support it, the canvas is filled with white
231 if (!function_exists('imagefill') || !function_exists('imagecolorallocate')) {
236 … if (!function_exists('imagecolorsforindex') || !function_exists('imagecolortransparent')) {
242 if (!$transcolor) {
276 if ($width == 0 && $height == 0) {
280 if (!$height) {
284 if (!$width) {
293 if ($newRatio >= 1) {
294 if ($newRatio > $oldRatio) {
302 if ($newRatio < $oldRatio) {
332 if (