Skip to content

Commit

Permalink
Merge pull request #23 from MihaelIsaev/MihaelIsaev-patch-1
Browse files Browse the repository at this point in the history
DataExtension: add Google Storage JPEG head bytes
  • Loading branch information
KittenYang authored Apr 15, 2022
2 parents 5502901 + e81ce9c commit e1c4eb0
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 e1c4eb0

Please sign in to comment.