Skip to content

Commit

Permalink
WIP comparation output
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
  • Loading branch information
Sarabadu committed Jun 23, 2023
1 parent bffcdfc commit 1795d4f
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/core/src/utils/image-bitmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import FileType from "file-type";
import { throwError } from "@jimp/utils";
import EXIFParser from "exif-parser";
// modify-exif
import modifyEXIF from "modify-exif";

import * as constants from "../constants";
import * as MIME from "./mime";
Expand Down Expand Up @@ -135,12 +136,12 @@ function transformBitmap(img, width, height, transformation) {
img.bitmap.width = width;
img.bitmap.height = height;

// img.bitmap.data = modifyEXIF(data, (_data) => {
// _data["0th"][274] = 1;
// return _data;
// });
img.bitmap.data = modifyEXIF(data, (_data) => {
_data["0th"][274] = 1;
return _data;
});

img.bitmap.data = data;
// img.bitmap.data = data;

img._exif = EXIFParser.create(data).parse();
}
Expand Down
Binary file modified packages/jimp/test/Landscape-output-2-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Landscape-output-3-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Landscape-output-4-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Landscape-output-5-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Landscape-output-6-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Landscape-output-7-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Landscape-output-8-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Portrait-output-2-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Portrait-output-3-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Portrait-output-4-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Portrait-output-5-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Portrait-output-6-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Portrait-output-7-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/jimp/test/Portrait-output-8-PR.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1795d4f

Please sign in to comment.