-
- Type |
- Line |
- Description |
-
-
- |
- 6 |
- dbwebb.se/opensource/cimage |
-
-
- |
- 7 |
- github.com/mosbth/cimage |
-
-
- |
- 86 |
- private $bgColorDefault = self::BACKGROUND_COLOR; |
-
-
- |
- 215 |
- Calculated from source image |
-
-
- |
- 216 |
- Calculated from source image |
-
-
- |
- 223 |
- Save original value |
-
-
- |
- 225 |
- Save original value |
-
-
- |
- 246 |
- Save original value |
-
-
- |
- 310 |
- private $remotePattern = '#^[http|https]://#'; |
-
-
- |
- 311 |
- #'; |
-
-
- |
- 335 |
- Calculated from source image |
-
-
- |
- 336 |
- Calculated from source image |
-
-
- |
- 337 |
- Use original image if possible |
-
-
- |
- 572 |
- $this->extension = $this->fileExtension; |
-
-
- |
- 603 |
- Sanitize filename |
-
-
- |
- 624 |
- Options for calculate dimensions |
-
-
- |
- 631 |
- array('width'=>null, 'height'=>null, 'start_x'=>0, 'start_y'=>0), |
-
-
- |
- 632 |
- '0,0,0,0', |
-
-
- |
- 635 |
- Options for caching or using original |
-
-
- |
- 639 |
- Pre-processing, before resizing is done |
-
-
- |
- 644 |
- General options |
-
-
- |
- 647 |
- Post-processing, after resizing is done |
-
-
- |
- 656 |
- Output format |
-
-
- |
- 660 |
- Options for saving |
-
-
- |
- 661 |
- 'quality' => null, |
-
-
- |
- 662 |
- 'compress' => null, |
-
-
- |
- 663 |
- 'saveAs' => null, |
-
-
- |
- 666 |
- Convert crop settings from string to array |
-
-
- |
- 677 |
- Convert area settings from string to array |
-
-
- |
- 688 |
- Convert filter settings from array of string to array of array |
-
-
- |
- 700 |
- php.net/manual/en/function.imagefilter.php' |
-
-
- |
- 708 |
- Merge default arguments with incoming and set properties. |
-
-
- |
- 709 |
- $args = array_merge_recursive($defaults, $args); |
-
-
- |
- 719 |
- Save original values to enable re-calculating |
-
-
- |
- 778 |
- Get details on image |
-
-
- |
- 804 |
- width as % |
-
-
- |
- 810 |
- height as % |
-
-
- |
- 818 |
- width & height from aspect ratio |
-
-
- |
- 840 |
- Change width & height based on dpr |
-
-
- |
- 852 |
- Check values to be within domain |
-
-
- |
- 875 |
- Crop, use cropped width and height as base for calulations |
-
-
- |
- 880 |
- Check if there is an area to crop off |
-
-
- |
- 897 |
- Check if crop is set |
-
-
- |
- 921 |
- Calculate new width and height if keeping aspect-ratio. |
-
-
- |
- 926 |
- Crop-to-fit and both new width and height are set. |
-
-
- |
- 929 |
- Use newWidth and newHeigh as width/height, image should fit in box. |
-
-
- |
- 934 |
- Both new width and height are set. |
-
-
- |
- 935 |
- Use newWidth and newHeigh as max width/height, image should not be larger. |
-
-
- |
- 945 |
- Use new width as max-width |
-
-
- |
- 952 |
- Use new height as max-hight |
-
-
- |
- 959 |
- Get image dimensions for pre-resize image. |
-
-
- |
- 962 |
- Get relations of original & target image |
-
-
- |
- 968 |
- Use newWidth and newHeigh as defined width/height, |
-
-
- |
- 969 |
- image should fit the area. |
-
-
- |
- 978 |
- Use newWidth and newHeigh as defined width/height, |
-
-
- |
- 979 |
- image should fit the area. |
-
-
- |
- 989 |
- Crop, ensure to set new width and height |
-
-
- |
- 996 |
- Fill to fit, ensure to set new width and height |
-
-
- |
- 1003 |
- No new height or width is set, use existing measures. |
-
-
- |
- 1444 |
- Rotate image |
-
-
- |
- 1451 |
- Auto-rotate image |
-
-
- |
- 1458 |
- Scale the original image before starting |
-
-
- |
- 1486 |
- Only use a specified area of the image, $this->offset is defining the area to use |
-
-
- |
- 1499 |
- Do as crop, take only part of image |
-
-
- |
- 1509 |
- Consider rewriting the no-upscale code to fit within this if-statement, |
-
-
- |
- 1510 |
- likely to be more readable code. |
-
-
- |
- 1511 |
- The code is more or leass equal in below crop-to-fit, fill-to-fit and stretch |
-
-
- |
- 1516 |
- Resize by crop to fit |
-
-
- |
- 1553 |
- Resize by fill to fit |
-
-
- |
- 1562 |
- Check ratio for landscape or portrait |
-
-
- |
- 1592 |
- Resize it |
-
-
- |
- 1619 |
- $this->log("posX=$posX, posY=$posY, cropX=$cropX, cropY=$cropY."); |
-
-
- |
- 1649 |
- Rotate image |
-
-
- |
- 1655 |
- Apply filters |
-
-
- |
- 1686 |
- Convert to palette image |
-
-
- |
- 1692 |
- Blur the image |
-
-
- |
- 1698 |
- Emboss the image |
-
-
- |
- 1704 |
- Sharpen the image |
-
-
- |
- 1710 |
- Custom convolution |
-
-
- |
- 1712 |
- $this->log("Convolve: " . $this->convolve); |
-
-
- |
- 1791 |
- stackoverflow.com/questions/5752514/how-to-convert-png-to-8-bit-png-using-php-gd-library |
-
-
- |
- 1864 |
- Check of matching constant |
-
-
- |
- 1872 |
- Expect list of 11 numbers, split by , and build up arguments |
-
-
- |
- 1924 |
- Use incoming options or use $this. |
-
-
- |
- 1927 |
- Treat incoming as string, split by + |
-
-
- |
- 1931 |
- Check each option if it matches constant value |
-
-
- |
- 2121 |
- Use JPEG optimize if defined |
-
-
- |
- 2143 |
- Turn off alpha blending and set alpha flag |
-
-
- |
- 2148 |
- Use external program to filter PNG, if defined |
-
-
- |
- 2161 |
- Use external program to deflate PNG, if defined |
-
-
- |
- 2257 |
- Get image modification time |
-
-
- |
- 2284 |
- Get details on image |
-
-
- TODO |
- 383 |
- clean up how $this->saveFolder is used in other methods. |
-
-
- TODO |
- 328 |
- Clean up these and check if and how they are used |
-
-