mirror of
https://github.com/imgproxy/imgproxy.git
synced 2026-05-16 09:18:09 +02:00
Fix Photoshop metadata dump
This commit is contained in:
@@ -67,9 +67,13 @@ func (m PhotoshopMap) Dump() []byte {
|
|||||||
buf.Grow(26)
|
buf.Grow(26)
|
||||||
|
|
||||||
buf.Write(ps3Header)
|
buf.Write(ps3Header)
|
||||||
buf.Write(ps3BlockHeader)
|
|
||||||
|
|
||||||
for id, data := range m {
|
for id, data := range m {
|
||||||
|
if len(data) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
buf.Write(ps3BlockHeader)
|
||||||
buf.WriteString(id)
|
buf.WriteString(id)
|
||||||
// Write empty name
|
// Write empty name
|
||||||
buf.Write([]byte{0, 0})
|
buf.Write([]byte{0, 0})
|
||||||
|
|||||||
Reference in New Issue
Block a user