Skip to content

Releases: TonyBrobston/jpegasus

Allow determineOrientation to receive Blob

03 Nov 19:23
ff8aa2a
Compare
Choose a tag to compare

Updated determineOrientation to take File or Blob.

Added preserveFileType and transparencyFillColor

14 Oct 23:51
ee0ef20
Compare
Choose a tag to compare

In order to keep transparency working on png files, I've added a preserveFileType option. I noted the limitation in the readme, if this is kept compression will not work; the only way to effect file size will be through changing the dimensions of the image.

Also, when compressing pngs, which also converts them to jpeg; the transparent sections of the image were being replaced with black. I added an option called transparencyFillColor to allow a color to be passed in. This uses https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle under the hood, so anything it can do, this can do.

Add lastModified and lastModifiedDate to Blob

02 Oct 20:16
d3318ca
Compare
Choose a tag to compare

When File isn't available, we fall back to Blob. Blob does not have lastModifed or lastModifiedDate properties, so we've added that. This will use Date.now() to get the current time and that will be used.

Add name to Blob

02 Oct 16:01
3d02fe6
Compare
Choose a tag to compare

When File isn't available, we fall back to Blob. Blob does not have name property, so we've added that. This will grab the name from the original file and preserve it.

Fixed exif promise issue and bumped dependencies

25 Sep 17:08
8c63e0a
Compare
Choose a tag to compare

There was an issue where the promise may never resolve when looking for exif orientation for an image. Also GitHub was complaining about security vulnerabilities in the dev dependencies, so I updated them.

Updating docs in npm

10 Sep 14:38
c3402a1
Compare
Choose a tag to compare
1.14.1

Merge pull request #166 from TonyBrobston/update-commitlint-config-co…

Added fixImageOrientation boolean option

27 Jul 18:57
8007a67
Compare
Choose a tag to compare

I'm am effort to fix orientation correction I'm going to add an option to shut it off. This will help me to troubleshoot and allow people to disable it if it happens to be buggy for them.

#161

Exposed `determineOrientation`.

23 Jul 19:02
cb03339
Compare
Choose a tag to compare

In an effort to better understand exif orientation and how browsers like Chrome/Firefox potentially rotate/flip an image, I'm exposing determineOrientation. I'll also add this in jpegasus-demo.

Added returnOriginalIfCompressedFileIsLarger

14 May 23:22
e8ecd1e
Compare
Choose a tag to compare

Updated Dependencies

14 May 18:04
6f48610
Compare
Choose a tag to compare
Merge pull request #148 from TonyBrobston/update-deploy-scripts

Update deploy scripts