Tôi gặp phải lỗi này khi sử dụng chức năng imagecreatefromjpeg
.Thông số SOS không hợp lệ cho tuần tự JPEG
Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Invalid SOS parameters for sequential JPEG in C:\wamp\www\test\index.php on line 7
Tôi đã nghiên cứu, với các lệnh này vượt qua lỗi tốt, hoạt động tốt.
ini_set("gd.jpeg_ignore_warning", 1);
error_reporting(E_ALL & ~E_NOTICE);
Nhưng tôi tự hỏi điều gì sai?
đây dữ liệu Exif hình ảnh của tôi
Array
(
[FileName] => 1.jpg
[FileDateTime] => 1455186386
[FileSize] => 1364340
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, COMMENT, EXIF
[COMPUTED] => Array
(
[html] => width="2592" height="1944"
[Height] => 1944
[Width] => 2592
[IsColor] => 1
[ByteOrderMotorola] => 0
[ApertureFNumber] => f/1.9
[UserComment] =>
[UserCommentEncoding] => UNDEFINED
)
[ImageWidth] => 2592
[ImageLength] => 1944
[Make] => samsung
[Model] => SM-G920F
[Orientation] => 8
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[Software] => G920FXXU3COJ1
[DateTime] => 2016:02:10 18:48:36
[YCbCrPositioning] => 1
[Exif_IFD_Pointer] => 226
[COMMENT] => Array
(
[0] => File written by Adobe Photoshop¨ 5.0
)
[ExposureTime] => 1/25
[FNumber] => 19/10
[ExposureProgram] => 2
[ISOSpeedRatings] => 200
[ExifVersion] => 0220
[DateTimeOriginal] => 2016:02:10 18:48:36
[DateTimeDigitized] => 2016:02:10 18:48:36
[ShutterSpeedValue] => 464/100
[ApertureValue] => 1851/1000
[BrightnessValue] => 33/100
[ExposureBiasValue] => 0/10
[MaxApertureValue] => 1851/1000
[MeteringMode] => 2
[Flash] => 0
[FocalLength] => 220/100
[MakerNote] => 0100 [email protected]
[UserComment] =>
[FlashPixVersion] => 0100
[ColorSpace] => 1
[ExifImageWidth] => 2592
[ExifImageLength] => 1944
[ExposureMode] => 0
[WhiteBalance] => 0
[FocalLengthIn35mmFilm] => 22
[SceneCaptureType] => 0
[ImageUniqueID] => B05LLHA01PM
)
Tôi biết đây là một chuỗi cũ nhưng tôi đang tìm kiếm một vấn đề tương tự. Ảnh gốc của bạn có từ điện thoại không? Hãy thử tìm kiếm trên web từ một diễn đàn khác "Đây là libjpeg phàn nàn về cấu trúc tập tin jpeg xấu. Không nhiều có thể được thực hiện về nó." – Bonzo