1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-01-18 03:28:16 +01:00

81 Commits

Author SHA1 Message Date
Mikael Roos
ee9fdb8474 One can now add a HTTP header for Cache-Control in the config file, #109. 2015-10-21 01:12:10 +02:00
Mikael Roos
ca9b4a4ce6 webroot/img/issue117/img.php?src=issue117%2Ftri_original.png 2015-10-21 00:05:14 +02:00
Mikael Roos
5fe8e399a1 * Added option to decide if resample or resize when copying images internally. &no-resample makes resize, instead of resample as is default.
* Verbose now correctly states if transparent color is detected.
* Removed that source png-files, containing less than 255 colors, is always saved as palette images since this migth depend on processing of the image.
2015-10-20 13:46:01 +02:00
Mikael Roos
f721ef4b35 Adding save-as as part of the generated cache filename, #121. 2015-10-20 10:26:09 +02:00
Mikael Roos
37b39fbecf Add extra fileds to json-response, #114. 2015-10-20 10:04:37 +02:00
Mikael Roos
553d2f3db1 Add header for Content-Length, #111. 2015-10-18 18:34:42 +02:00
Mikael Roos
f00b2e0cd3 adding feature for creating dummy images, #101 2015-09-17 11:22:50 +02:00
Mikael Roos
fd2ddadc44 Add png compression to generated cache filename, fix #103. 2015-09-16 09:51:04 +02:00
Mikael Roos
ea4794f4a2 remove commented code 2015-09-16 09:19:46 +02:00
Mikael Roos
7af0b6ef8a remove commented code 2015-09-16 09:18:51 +02:00
Mikael Roos
850fb76c8b cleanup unused variables 2015-09-16 09:09:30 +02:00
Mikael Roos
49f5f66ad3 calling setSource(null) should unset imageSrc and pathToImage 2015-09-16 08:26:28 +02:00
Mikael Roos
a787593533 Removing unneded internal variable this->imageFolder 2015-09-16 08:21:32 +02:00
Mikael Roos
afff3589dc Generate filename with filters, does not work on Windows, fix #100. 2015-09-15 17:23:22 +02:00
Mikael Roos
2959f11f33 Adding support for AsciiArt of an image. 2015-09-01 16:45:10 +02:00
Mikael Roos
8bc710f3b8 * Using CWhitelist for checking hotlinking to images, fix #88.
* Added mode for `test` which enables logging verbose mode to file, fix #97.
2015-07-25 22:21:12 +02:00
Mikael Roos
01a868d925 Improved codestyle and added to start using phpcs to check code style, fix #95. 2015-07-23 11:32:19 +02:00
Mikael Roos
ded8a43bc3 Naming cache-file using md5 for remote images, fix #86 2015-03-16 15:36:06 +01:00
Mikael Roos
f5529c7431 Loading images without depending on filename extension, fix #85. 2015-03-06 13:00:21 +01:00
Mikael Roos
f37189c378 adding support for whitelist of remote hostnames, #84 2015-03-04 11:29:10 +01:00
Mikael Roos
aa009510be Resize gif keeping transparency #81. 2015-02-09 00:40:55 +01:00
Mikael Roos
16a7a3dad5 * Now returns statuscode 500 when something fails #55.
* Three different modes: strict, production, development #44.
* Three files for all-in-one `imgs.php`, `imgp.php`, `imgd.php` #73.
2015-01-29 21:16:32 +01:00
Mikael Roos
3452ea1908 Add all code into one single script #73 2015-01-27 22:40:28 +01:00
Mikael Roos
5e08e5ed80 Enable in config to disallow hotlinking/leeching #46 2015-01-19 00:00:54 +01:00
Mikael Roos
4fae208c4c alias now requires password to work. alias filename is without extension #47. 2015-01-17 19:16:39 +01:00
Mikael Roos
f87dc2967f adding support for alias #47 2015-01-15 23:29:18 +01:00
Mikael Roos
c35587c7e2 create caache directory for remote download if it does not exists #43 2015-01-14 21:00:08 +01:00
Mikael Roos
be98ae8979 ready for merge #43 2015-01-14 19:28:52 +01:00
Mikael Roos
f9704a4fbc remote download #43 2015-01-10 20:17:12 +01:00
Mikael Roos
8c4b22ca66 Prepare to rewrite the resize-method with respect to no-upscale code. 2014-12-15 17:45:21 +01:00
Mikael Roos
1144c8e105 updating strategies to use for no-upscale 2014-12-15 17:14:06 +01:00
Mikael Roos
90bfced741 Added option - no-upscale, nu - as resizing strategy to decline upscaling of smaller images. Fix #61. 2014-12-15 15:41:51 +01:00
Mikael Roos
61e0473f47 CImage::resize now crops using imagecopy without resamling. 2014-12-15 09:41:11 +01:00
Mikael Roos
ece0be086c Correcting internal details for save-as and response json which indicated wrong colors. Fix #62. 2014-12-15 09:19:23 +01:00
Mikael Roos
ea06d5cfe6 Fixed fill-to-fit that failed when using aspect-ratio. Fix #52. 2014-12-14 17:04:51 +01:00
Mikael Roos
00dca21be0 Corrected behaviour for skip-original. Fix #60 2014-12-13 00:12:39 +01:00
Mikael Roos
af1aa661b9 rewrote docs. tested. prepare to tag v0.6 2014-12-06 14:33:47 +01:00
Mikael Roos
9015e7ce9d Minor cleaning of properties in CImage, fix #23 2014-12-03 16:15:32 +01:00
Mikael Roos
cdbc9b4adb correcting issue with PHP 5.3 where array is used as constant 2014-12-03 15:42:49 +01:00
Mikael Roos
f13b602e11 Added option fill-to-fit, ff. Fix #38. 2014-12-03 15:26:17 +01:00
Mikael Roos
113b62edc0 Added option 'shortcut, sc' to enable configuration of complex expressions. Fix #2. 2014-11-28 16:25:54 +01:00
Mikael Roos
3c04a2dd0f Added support for custom convolutions. Fix #49. 2014-11-27 22:04:41 +01:00
Mikael Roos
9177d72bea Check if constants exists. Fix #42 2014-11-26 14:45:38 +01:00
Mikael Roos
d4a03b70dd Adding testcase for #40 2014-11-24 10:46:50 +01:00
Mikael Roos
188f8cd64d Adding option taking comma-separated list of 11 float-values, wraps and exposes . #4 2014-11-24 09:27:47 +01:00
Mikael Roos
4dfbcd9784 Changing ppi to dpr. #25 2014-11-24 07:41:32 +01:00
Mikael Roos
35dd5c9064 Adding option which defaults to 1. Set to 2 to get a twice as large image. Useful for Retina displays. Basically a shortcut to enlarge the image. #25 2014-11-21 23:44:19 +01:00
Mikael Roos
08ee3064d0 * Cache-directory can now be readonly and serve all cached files, still failing when need to save files. #5 2014-11-21 22:31:04 +01:00
Mikael Roos
ba45f746bb * Cache now uses same file extension as original image #37.
* Can output image as json format using `json` #11.
2014-11-21 22:20:30 +01:00
Mikael Roos
3b7485b3b9 Support filenames of uppercase JPEG, JPG, PNG and GIF, as proposed in #37. 2014-11-21 21:01:22 +01:00