1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-31 09:31:53 +02:00
Commit Graph

1211 Commits

Author SHA1 Message Date
shaneiseminger
1110a23da5 Support JP2 images 2019-11-07 09:39:45 -07:00
shaneiseminger
eb16ed033c Exception message doesn't always report format correctly 2019-11-07 09:38:08 -07:00
Koen
5e84b29174 add support for bmp 2019-11-07 11:51:46 +01:00
Damien Grandi
e2d032dc15 Bugfix for DataUrl containing newlines inside data
Remove the newlines before doing a Regex check inside the decodeDataUrl method in the same way that is the isBase64 method doing.
2019-11-06 12:09:51 +01:00
Oliver Vogel
a59085a161 Merge pull request #968 from tomothumb/patch-1
Multibyte text is not rendered
2019-11-02 10:24:56 +01:00
Oliver Vogel
88ee109abb Merge pull request #975 from pgrimaud/master
Fix typo
2019-11-02 10:23:32 +01:00
Oliver Vogel
abbf18d5ab Laravel 6 / PHP7.3 compatibility 2.5.1 2019-11-02 10:15:47 +01:00
Pierre Grimaud
9cac119491 Fix typo 2019-10-04 20:05:18 +02:00
Tomoyuki Tsujimoto
5f5ab3b0d1 Update Font.php 2019-09-03 05:17:03 +09:00
Tomoyuki Tsujimoto
d5611555bf Multibyte text is not rendered
In some server configration, Multibyte text is not rendered ( is not encoded properly).

PDF Library DOMPDF  is doing like this way.

`$text = mb_encode_numericentity($text, array(0x0080, 0xffff, 0, 0xffff), 'UTF-8'); `

313f466e77/src/Adapter/GD.php (L866)


This is error log.
```
imagettfbbox(): any2eucjp(): invalid code in input string {"exception":"[object] (ErrorException(code: 0): imagettfbbox(): any2eucjp(): invalid code in input string at /usr/home/webapp/vendor/intervention/image/src/Intervention/Image/Gd/Font.php:85)
[stacktrace]
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'imagettfbbox():...', '/usr/home/...', 85, Array)
#1 /usr/home/webapp/vendor/intervention/image/src/Intervention/Image/Gd/Font.php(85): imagettfbbox(38, 0, '/usr/home/...', '\\xE3\\x82\\x8A')
#2 /usr/home/webapp/vendor/intervention/image/src/Intervention/Image/Gd/Font.php(140): Intervention\\Image\\Gd\\Font->getBoxSize()
#3 /usr/home/webapp/vendor/intervention/image/src/Intervention/Image/Commands/TextCommand.php(30): Intervention\\Image\\Gd\\Font->applyToImage(Object(Intervention\\Image\\Image), 4, 15)
#4 /usr/home/webapp/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(92): Intervention\\Image\\Commands\\TextCommand->execute(Object(Intervention\\Image\\Image))
#5 /usr/home/webapp/vendor/intervention/image/src/Intervention/Image/Image.php(106): Intervention\\Image\\AbstractDriver->executeCommand(Object(Intervention\\Image\\Image), 'text', Array)
...
```
2019-09-03 05:10:27 +09:00
Oliver Vogel
39eaef720d Merge pull request #951 from rez1dent3/master
added the $format parameter to the save method
2.5.0
2019-06-24 16:06:31 +02:00
Babichev Maxim
dcae042e71 add test unit 2019-06-10 11:07:42 +03:00
Babichev Maxim
ab55fbb040 added the $format parameter to the save method 2019-06-07 18:04:55 +03:00
Oliver Vogel
5f5e1c8768 Merge pull request #947 from olivervogel/master
Optimized code
2.4.3
2019-05-31 19:08:36 +02:00
Oliver Vogel
8ee5f346ce Optimized code 2019-05-31 19:02:32 +02:00
Oliver Vogel
ef5017a574 Merge pull request #911 from iliyaZelenko/patch-1
Update Argument.php
2019-05-31 18:16:07 +02:00
Oliver Vogel
d265e932e0 Merge pull request #946 from olivervogel/master
Added PHP versions to CI
2019-05-31 12:48:35 +02:00
Oliver Vogel
5d59c524da Bugfix 2019-05-31 12:44:09 +02:00
Oliver Vogel
2bd42c557c Added option to PsrResponseCommandTest 2019-05-31 12:40:07 +02:00
Oliver Vogel
09ad3953df Added PHP versions to CI 2019-05-31 12:32:08 +02:00
Oliver Vogel
bd269593e8 Fix for PHP5.4 2019-05-31 12:25:14 +02:00
Oliver Vogel
9007ace48a Merge pull request #925 from TiGR/patch-1
Add support for Symfony Response creation
2019-05-31 12:20:35 +02:00
Oliver Vogel
26b3f7935b Merge pull request #595 from tomekszad/498_fix_text_top_vertical_position_multiline_imagick
498_fix_text_top_vertical_position_multiline_imagick
2019-05-31 12:16:57 +02:00
Oliver Vogel
f77dcceacb Merge branch 'master' of https://github.com/Intervention/image 2019-05-31 12:06:12 +02:00
Oliver Vogel
3716991ae9 Merge branch 'kalatabe-handle_whitespaced_b64' 2019-05-31 12:05:55 +02:00
Oliver Vogel
1abd3bfdac Made test available again 2019-05-31 12:05:16 +02:00
Oliver Vogel
79909df010 Merge branch 'handle_whitespaced_b64' of https://github.com/kalatabe/image into kalatabe-handle_whitespaced_b64 2019-05-31 12:04:10 +02:00
Oliver Vogel
f684d69005 Merge pull request #887 from vlakoff/resize
Avoid 0px result dimensions when resizing images with extreme ratios
2019-05-31 11:51:43 +02:00
Oliver Vogel
00fce11bb4 Merge pull request #924 from kendugu/patch-1
Ensure WebP image background is transparent
2019-05-30 09:34:10 +02:00
Oliver Vogel
b60db7e1e0 Merge pull request #927 from caffeineinc/bugfix/2.4.2-fix-exif-error
2.4.2 Fix exif errors on PNG / corrupted images
2019-05-30 09:33:00 +02:00
Oliver Vogel
5798d57dd3 Merge pull request #940 from TullariS/patch-1
PHPDoc static methods for Facade
2019-05-30 09:27:37 +02:00
TullariS
da3e032596 PHPDoc static methods for Facade
Facilitates autocomplete when using the Facade
2019-05-01 17:50:00 +01:00
Oliver Vogel
a8fca2aeea Merge pull request #857 from civictechro/master
- make private method protected
2019-04-22 12:45:12 +02:00
Oliver Vogel
9630f5b63f Merge pull request #902 from koenhoeijmakers/patch-1
Resize width is also nullable.
2019-04-22 12:41:45 +02:00
Oliver Vogel
a8e3656417 Merge pull request #889 from samnela/fix/use-psr1-implementation
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
2019-04-22 12:41:17 +02:00
Oliver Vogel
7280bd61ee Merge pull request #934 from Tarasovych/patch-1
Issue #933
2019-04-22 12:38:40 +02:00
Tarasovych
67e0dbf203 Issue #933 2019-03-27 10:50:25 +02:00
Simon Gow
bcf9679a73 Throw NotReadable exception if the exif_read_data fails
PNGs and corrupted images will raise exceptions and need to be hanlded correctly.

Stop handling and raise an appropriate exception.
2019-01-31 14:50:43 +13:00
Igor Tarasov
f936e64e2f Add support for Symfony Response creation
This would make response method play nice with Symfony, Silex and any other project that uses Symfony's http stack.
2019-01-21 21:19:13 +03:00
Kenneth Keegan
321c1b9f4f Ensure WebP image background is transparent
Possible fix for #923.
2019-01-16 15:32:57 -08:00
Steven
d5b2fcb00e Update Font.php
When setting vertical position to "top" ImageMagic requires the "Vertical offset in pixels to the baseline of text" according to 
http://php.net/manual/en/imagick.annotateimage.php.
Therefore we actually need the yOffset + the characterHeight
2018-12-06 16:06:49 +01:00
Илья
c4d92f221e Update Argument.php 2018-11-10 20:27:26 +02:00
Илья
4cf7f90627 Update Argument.php
I made the code easier.
2018-11-10 20:13:39 +02:00
Koen Hoeijmakers
26946b9d19 Resize width is also nullable. 2018-10-09 12:57:16 +02:00
Samuel NELA
ee33534e66 Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 2018-09-09 22:06:46 +02:00
vlakoff
87f24c63fa Use Symfony polyfill instead of requiring mbstring extension 2018-09-09 08:11:36 +02:00
vlakoff
e661de60b1 Improving the fix for support of custom commands with accentuated names 2018-09-09 04:59:45 +02:00
vlakoff
4a4fc12f49 Avoid 0px result dimensions when resizing images with extreme ratios 2018-09-09 04:54:52 +02:00
Marius Ghitoiu
ec81b4acca - made private method protected 2018-06-17 22:46:03 +03:00
Oliver Vogel
e82d274f78 Merge pull request #837 from umutuluer/patch-1
Update AbstractDriver.php
2.4.2
2018-05-29 16:19:03 +02:00