Skip to content

Commit

Permalink
Raise maxMetaDataSize for replaceHead function.
Browse files Browse the repository at this point in the history
The image blob generated from a canvas for specific pictures contains a JPEG APP2 segment that is larger than 512 bytes.
See also #129.
  • Loading branch information
blueimp committed Oct 20, 2021
1 parent 44a909a commit 6454d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/load-image-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
* @returns {Promise<Blob|null>|undefined} Combined Blob
*/
function replaceHead(blob, head, callback) {
var options = { maxMetaDataSize: 256, disableMetaDataParsers: true }
var options = { maxMetaDataSize: 1024, disableMetaDataParsers: true }
if (!callback && global.Promise) {
return parseMetaData(blob, options).then(function (data) {
return replaceJPEGHead(blob, data.imageHead, head)
Expand Down

0 comments on commit 6454d3b

Please sign in to comment.