mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
- missing implementation gdJpegGetVersionString (thanks Rob)
This commit is contained in:
parent
0e1c4f1992
commit
855da166ef
@ -249,6 +249,9 @@ gdImagePtr gdImageCreateFromJpegCtx(gdIOCtx *infile, int ignore_warning);
|
||||
int gdJpegGetVersionInt();
|
||||
const char * gdPngGetVersionString();
|
||||
|
||||
int gdJpegGetVersionInt();
|
||||
const char * gdJpegGetVersionString();
|
||||
|
||||
/* A custom data source. */
|
||||
/* The source function must return -1 on error, otherwise the number
|
||||
of bytes fetched. 0 is EOF, not an error! */
|
||||
|
@ -107,6 +107,18 @@ int gdJpegGetVersionInt()
|
||||
return JPEG_LIB_VERSION;
|
||||
}
|
||||
|
||||
const char * gdJpegGetVersionString()
|
||||
{
|
||||
switch(JPEG_LIB_VERSION) {
|
||||
case 62:
|
||||
return "6b";
|
||||
break;
|
||||
default:
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Write IM to OUTFILE as a JFIF-formatted JPEG image, using quality
|
||||
* QUALITY. If QUALITY is in the range 0-100, increasing values
|
||||
|
Loading…
Reference in New Issue
Block a user