Skip to content

Commit

Permalink
DataExtension: add Google Storage JPEG head bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaelIsaev authored Apr 6, 2022
1 parent 5502901 commit e81ce9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/ImageCode/DataExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ public extension LonginusExtension where Base == Data {
{
return .JPEG

} else if buffer[0] == 0x52, // Google Storage JPEG
buffer[1] == 0x49,
buffer[2] == 0x46
{
return .JPEG

} else if buffer[0] == ImageFormat.HeaderData.GIF[0],
buffer[1] == ImageFormat.HeaderData.GIF[1],
buffer[2] == ImageFormat.HeaderData.GIF[2]
Expand Down

0 comments on commit e81ce9c

Please sign in to comment.