202 Commits

Author SHA1 Message Date
Grigory Dryapak
d40f48ce0f Merge pull request #130 from StruffelProductions/add-hue-adjustment
Add function "AdjustHue"
2020-12-18 22:30:11 +03:00
StruffelProductions
a6f4d6450c Add detection for all trivial cases
Detects all trivial cases (like -360,0,360) instead of just 0.
2020-12-18 15:51:22 +01:00
StruffelProductions
3956733f99 Remove shift limitation
Removes the [-180,180] limitation from the hue shift and adds additional test cases for -540, -360, -350, 350, 360, 540, -480 (golden), 480 (golden).
2020-12-18 15:47:50 +01:00
Grigory Dryapak
9821411d12 readme: update documentation links 2020-11-25 11:00:12 +03:00
Grigory Dryapak
6ee5d65154 readme: fix typo 2020-11-25 10:01:42 +03:00
StruffelProductions
0d8eac9584 Invert hue adjustment direction
Inverts the direction in which the hue is rotated to bring the function in line with the HSL filters in GIMP, Krita and Blender.
2020-11-22 12:33:32 +01:00
StruffelProductions
84be08e612 Rename "AdjustHues" to "AdjustHue"
Renames the function "AdjustHues" to "AdjustHue" (along with the tests, documentation and sample files).
2020-11-22 11:38:17 +01:00
Grigory Dryapak
9edfa1ec22 Merge pull request #131 from dthadi3/ppc64le
Travis-ci: added support for ppc64le & updated go 1.13 & 1.14 & 1.15
2020-11-21 18:36:17 +03:00
Devendranath Thadi
ab97377a03 Travis-ci: added support for ppc64le & updated go 1.13 & 1.14 & 1.15
Signed-off-by: Devendranath Thadi <devendranath.thadi3@gmail.com>
2020-11-11 18:26:09 +00:00
StruffelProductions
083d3988dd Change function name to "AdjustHues"
Changes the name of "AdjustHue" to "AdjustHues" which appears to be the proper term when talking about an entire image (instead of one individual color).
2020-09-21 15:52:45 +02:00
StruffelProductions
e72d05b90d Update README to include AdjustHue function
Adds an example for the AdjustHue function to the README file.
2020-09-21 15:39:27 +02:00
StruffelProductions
11904579b5 Minor change for legibility
Slight change to the AdjustHue function to adjust readability.
2020-09-21 15:28:38 +02:00
StruffelProductions
2d516545b0 Add Tests for AdjustHue
Adds tests for the AdjustHue function.
2020-09-21 15:13:39 +02:00
StruffelProductions
7b1841f29f Fix/Adjust interpretation of shift value
Fixes the conversion from the degree to a float value and makes it consistent with most other color pickers.
2020-09-20 22:57:40 +02:00
StruffelProductions
e68dac9b3a Add 'AdjustHue' function
The function AdjustHue(img, shift) performs a hue shift and returns the changed image img.
2020-09-20 22:17:24 +02:00
Grigory Dryapak
339f5d48a4 Merge pull request #123 from marianrh/master
Support limiting the number of parallel processing goroutines
2020-06-06 02:58:19 +03:00
Marian Rainer-Harbach
5232859032 Support limiting the number of concurrent processing subroutines 2020-05-26 08:37:41 +02:00
Grigory Dryapak
879073f233 Merge pull request #109 from yef-ksh/master
avoid unnecessary processing
2020-02-12 00:01:10 +03:00
yefu
24d954dc01 rewrite if/else
Change-Id: I00d2aa0180bf63d006d459765b9f91a622a882f4
2020-02-03 10:29:52 +08:00
yefu
a44fc157f4 fix test case
Change-Id: Ic567a5bad7a6e1cea5eebb3a555c119a62907ecb
2020-01-23 14:50:42 +08:00
yefu
e413873b85 add test case
Change-Id: I34f6e8ebe111d85a9631e710ad4180b73c8fc881
2020-01-22 18:39:08 +08:00
yefu
d8633a436a avoid unnecessary processing
Change-Id: I6adcf2a9bd1b6b30bcfb9a8351778b30f3c16caa
2020-01-22 17:59:11 +08:00
Grigory Dryapak
acabd8315e Merge pull request #106 from Hsn723/master
upgrade x/image dependency to support v4 and v5 bmp info headers
v1.6.2
2019-11-16 23:43:25 +03:00
tu-antoine
675e3c209f upgrade x/image dependency to support v4 and v5 bmp info headers 2019-11-15 15:30:25 +09:00
Grigory Dryapak
9aab30e6aa travis-ci: remove go versions 1.7.x .. 1.9.x v1.6.1 2019-08-24 14:28:32 +03:00
Grigory Dryapak
8012152d63 travis-ci: add go 1.12.x 2019-08-24 14:16:26 +03:00
Grigory Dryapak
3315d80b86 fix golden tests on arm64, ppc64le, s390x 2019-08-24 14:10:54 +03:00
Grigory Dryapak
465faf0892 readme: add FAQ section 2019-06-02 15:04:07 +03:00
Grigory Dryapak
061e8a750a Merge pull request #90 from sosiska/patch-1
rewrite if-else to switch statement
2019-03-08 20:29:37 +03:00
Motkov Kirill
cfaa495a0b rewrite if-else to switch statement 2019-03-05 23:38:42 +03:00
Grigory Dryapak
5362c131d5 tidy up docs and comments v1.6.0 2019-02-02 06:03:27 +03:00
Grigory Dryapak
589168b0e0 io: minor refactoring of Encode and formats 2019-02-02 06:02:57 +03:00
Grigory Dryapak
20f8a0b29d revert copyright date to 2012 2019-02-02 06:02:32 +03:00
Grigory Dryapak
6b1a0e7447 Fill and Fit tests improvements
- Separate test cases for crop->resize and resize->crop fill variants
- Use Fill with different anchor points in golden tests
- Add Fit golden test
2019-01-20 18:41:48 +03:00
Grigory Dryapak
791d8b4e28 performance improvements 2019-01-20 17:42:36 +03:00
Grigory Dryapak
b5a2b9828d Merge pull request #84 from bspammer/crop_before_resize
Crop before resize in Fill
2019-01-20 17:23:24 +03:00
Grigory Dryapak
fa79ab36ab add saturation examples to readme 2019-01-12 07:07:49 +03:00
Grigory Dryapak
b6b4936896 adjust saturation fixes and tests 2019-01-12 07:03:12 +03:00
Grigory Dryapak
61e812f83d Merge branch 'j-delaney-saturation' 2019-01-12 04:51:18 +03:00
Charlie Collard
26f8037242 Add golden tests for Thumbnail 2018-12-29 00:08:13 +00:00
Charlie Collard
4ae66ee569 Fill: update documentation 2018-12-28 19:34:53 +00:00
Charlie Collard
87b60f21ec Fill: fallback to old algorithm for small images 2018-12-28 19:24:35 +00:00
Charlie Collard
ff7744657f Fill: add rounding and minimum width/height of 1 2018-12-15 17:31:30 +00:00
Charlie Collard
a00a492237 Refactor in Fill for clarity 2018-12-09 20:30:03 +00:00
Charlie Collard
2fe522e994 Crop before resize in Fill function 2018-12-09 19:53:59 +00:00
Charlie Collard
77c9f66be8 Add benchmarks for Fill function 2018-12-09 19:53:37 +00:00
J Delaney
eca413ec14 AdjustSaturation 2018-10-26 16:54:52 +01:00
Grigory Dryapak
9458da53d1 Merge pull request #81 from orisano/master
improve performance of Resize
2018-10-20 18:01:46 +03:00
Nao YONASHIRO
f14fb45228 feat: improve performance small case 2018-10-17 00:54:52 +09:00
Nao YONASHIRO
79b59a9098 feat: reduce avoid multiply 2018-10-17 00:28:10 +09:00