mirror of
https://github.com/mosbth/cimage.git
synced 2025-01-17 19:18:15 +01:00
8.0 KiB
8.0 KiB
Revision history
v0.7.0-rc.2 (2015-02-10)
- Always use password, setting in img_config.php, fix #78.
- Resize gif keeping transparency #81.
- 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. - Change name of script all-in-one to
webroot/imgs.php
#73. - Combine all code into one singel script,
webroot/img_single.php
#73. - Disallow hotlinking/leeching by configuration #46.
- Alias-name is without extension #47.
- Option
alias
now requirespassword
to work #47. - Support for option
password, pwd
to protect usage ofalias
and remote download. - Added support for option
alias
that creates a link to a cached version of the image #47. - Create cache directory for remote download if it does not exists.
- Cleaned up
img_config.php
and introduced default values for almost all options #72.
v0.6.2 (2015-01-14)
- Added support for download of remote images #43.
- Added autoloader.
v0.6.1 (2015-01-08)
- Adding compare-page for comparing images. Issue #20.
- Added option
no-upscale, nu
as resizing strategy to decline upscaling of smaller images. Fix #61. - Minor change in
CImage::resize()
, crop now does imagecopy without resamling. - Correcting internal details for save-as and response json which indicated wrong colors. Fix #62.
- Fixed fill-to-fit that failed when using aspect-ratio. Fix #52.
- JSON returns correct values for resulting image. Fix #58.
- Corrected behaviour for skip-original. Fix #60.
v0.6 (2014-12-06)
- Rewrote and added documentation.
- Moved conolution expressesion from
img_config.php
toCImage
. - Minor cleaning of properties in
CImage
. Fix #23. - Adding
webroot/htaccess
to show off how friendly urls can be created forimg.php
. Fix #45. - Added option
fill-to-fit, ff
. Fix #38. - Added option
shortcut, sc
to enable configuration of complex expressions. Fix #2. - Added support for custom convolutions. Fix #49.
- Restructured testprograms. Fix #41.
- Corrected json on PHP 5.3. Fix #42.
- Improving template for tests in
webroot/tests
when testing out #40. - Adding testcase for #40.
- Adding option
convolve
taking comma-separated list of 11 float-values, wraps and exposesimageconvoluttion()
. #4 - Adding option
dpr, device-pixel-ratio
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. - Adding utility
cache.bash
to ease gathering stats on cache usage. #21 - Cache-directory can now be readonly and serve all cached files, still failing when need to save files. #5
- Cache now uses same file extension as original image #37.
- Can output image as json format using
json
#11.
v0.5.3 (2014-11-21)
- Support filenames of uppercase JPEG, JPG, PNG and GIF, as proposed in #37.
- Changing
CImage::output()
as proposed in #37. - Adding security check that image filename is always below the path
image_path
as specified inimg_config.php
#37. - Adding configuration item in
img_config.php
for setting valid characters in image filename. - Moving
webroot/test*
into directorywebroot/test
. webroot/check_system.php
now outputs if extension for exif is loaded.- Broke API when
initDimensions()
split into two methods, newinitDimensions()
andloadImageDetails()
. - Added
autoRotate, aro
to auto rotate image based on EXIF information. - Added
bgColor, bgc
to use as backgroundcolor when needing a filler color, for example rotate 45. - Added
rotateBefore, rb
to rotate image a certain angle before processing. - Added
rotateAfter, ra
to rotate image a certain angle after processing. - Cleaned up code formatting, removed trailing spaces.
- Removed @ from opening images, better to display correct warning when failing #34, but put it back again.
- Setting gd.jpeg_ignore_warning to true as default #34.
webroot/check_system.php
now outputs version of PHP and GD.- #32 correctly send 404 header when serving an error message.
- Trying to verify issue #29, but can not.
- Adding structure for testprograms together with, use
webroot/test_issue29.php
as sample. - Improving code formatting.
- Moving parts of verbose output from img.php to CImage.php.
v0.5.2 (2014-04-01)
- Correcting issue #26 providing error message when not using postprocessing.
- Correcting issue #27 warning of default timezone.
- Removed default $config options in
img.php
, was not used, all configuration should be inimg_config.php
. - Verified known bug - sharpen acts as blur in PHP 5.5.9 and 5.5.10 #28
v0.5.1 (2014-02-12)
- Display image in README-file.
- Create an empty
cache
directory as part of repo.
v0.5 (2014-02-12)
- Change constant name
CImage::PNG_QUALITY_DEFAULT
toCImage::PNG_COMPRESSION_DEFAULT
. - Split JPEG quality and PNG compression,
CImage->quality
andCImage->compression
- Changed
img.php
parameter named, deflate
toco, compress
. - Separating configuration issues from
img.php
toimg_config.php
. - Format code according to PSR-2.
- Disabled post-processing JPEG and PNG as default.
- This version is supporting PHP 5.3, later versions will require 5.5 or later.
- Using GitHub issue tracking for feature requests and planning.
- Rewrote the manual.
- Created directory
webroot
and moved some files there.
v0.4.1 (2014-01-27)
- Changed => to == on Modified-Since.
- Always send Last-Modified-Header.
- Added
htmlentities()
to verbose output. - Fixed support for jpeg, not only jpg.
- Fixed crop whole image by setting crop=0,0,0,0
- Use negative values for crop width & height to base calulation on original width/height and withdraw selected amount.
- Correcting jpeg when setting quality.
- Removed obsolete reference to
$newName
inCImage::__construct()
(issue 1).
v0.4 (2013-10-08)
- Improved support for pre-defined sizes.
- Adding grid column size as predefined size, c1-c24 for a 24 column grid. Configure in
img.php
. - Corrected error on naming cache-files using subdir.
- Corrected calculation error on width & height for crop-to-fit.
- Adding effects for sharpen, emboss and blur through imageconvolution using matrixes.
- crop-to-fit, add parameter for offset x and y to enable to define which area is the, implemented as area.
- Support for resizing opaque images.
- Center of the image from which the crop is done. Improved usage of area to crop.
- Added support for % in width & height.
- Added aspect-ratio.
- Added scale.
- Quality for PNG images is now knows as deflate.
- Added palette to create images with max 256 colors.
- Added usage of all parameters to README.md
- Added documentation here http://dbwebb.se/opensource/cimage
- Adding
.gitignore
- Re-adding
cache
directory
v0.3 (2012-10-02)
- Added crop. Can crop a area (
width
,height
,start_x
,start_y
) from the original image. - Corrected to make the 304 Not Modified header work.
- Predefined sizes can be configured for width in
img.php
. - Corrected to make crop work with width or height in combination with crop-to-fit.
v0.2 (2012-05-09)
- Implemented filters as in http://php.net/manual/en/function.imagefilter.php
- Changed
crop
tocrop_to_fit
, works the same way. - Changed arguments and sends them in array.
- Added quality-setting.
- Added testcases for above.
v0.1.1 (2012-04-27)
- Corrected calculation where both width and height were set.
v0.1 (2012-04-25)
- Initial release after rewriting some older code doing the same, but not that good and flexible.