Skip to content

Commit

Permalink
fixed #20 support gd.jpeg_ignore_warning ini option on imgresize_lib api
Browse files Browse the repository at this point in the history
  • Loading branch information
Joungkyun committed Jan 19, 2019
1 parent 33753b3 commit fd02dfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PHP Korean Extexsions Changelog
--------------------------------------------------------------------------------
Sat Jan 19 2019
by JoungKyun.Kim <[email protected]>
- fixed #20 support gd.jpeg_ignore_warning ini option on imgresize_lib api
- fixed #19 enhanced code that may cause bugs in data type comparisons
- fixed #16 Incorrect memory changes in Uniconv api and krNcrEncode api

Expand Down
4 changes: 4 additions & 0 deletions krimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ PHP_FUNCTION(imgresize_lib)
break;
case 2: /* if jpeg */
#ifdef HAVE_GD_JPG
#ifdef HAVE_GD_BUNDLED
im = gdImageCreateFromJpegEx (fp, INI_INT("gd.jpeg_ignore_warning"));
#else
im = gdImageCreateFromJpeg (fp);
#endif
#else /* HAVE_GD_JPG */
fclose (fp);
php_error (E_ERROR, "No JPEG support in this PHP build");
Expand Down

0 comments on commit fd02dfb

Please sign in to comment.