- Does not crash if the image widget has piece ids but the actual image piece is no longer available (in the trash, for instance)
- Reduces required image size to 200px x 200px
- Adds support for 167px x 167px favicon
Previously committing a new favicon did not update the favicon seen while in draft mode. Since initially saving the global doc doesn't do it either in draft mode, this led editors to think the feature didn't work at all, although it was updating for logged-out users, or for live and preview modes.
Starting in version 2.0.5, committing the favicon change in the global doc will immediately be visible in draft mode too. In a future release, we plan to support immediately seeing a favicon change when clicking "Save Changes" for the global doc, however this requires careful attention to backwards compatibility.
Updates ESLint and fixes linting errors.
Fixed bug relating to detecting that a new favicon image has been chosen.
Fixed bug relating to behavior when the working folder does not yet exist. Thanks to Kalia at swiss4ward for reporting the issue.
eslint dependencies and eslint passing.
New release based on imagemagick
rather than the favicon
npm module. Much faster with minimized CPU impact. However it no longer takes the options that could formerly be passed to favicon
, so the major version has been bumped.
Play nicely with apostrophe-multisite
, don't get involved at asset bundle generation time.
Do not crash if the aposFavicon property does not exist.
Do not crash if the temp dir already exists.
-
Fixes a bug caused by picking an SVG from the media library. Favicons can now be generated from SVGs
-
Fixes a bug where favicon processing was running more than necessary. This was specifically seen when using in conjunction with
apostrophe-workflow
(and potentiallyapostrophe-palette
). Now we store the last good image relationship as a string on the global doc for more consistent comparison.
-
Progress is now displayed via the new server-side support for
apos.notify
in Apostrophe. Note that Apostrophe must be at least version 2.73.0. -
Performance is drastically improved when the source image is large. We now start with the prescaled version of the image not less than 512 pixels in size on both axes, rather than wasting a great deal of time and RAM scaling a large original many times.
-
All operations are now performed in a forked process. This prevents the favicon scaling computation, which is mostly synchronous code, from blocking the use of the Apostrophe site in the meantime.
Further performance improvement is possible by using external tools such as imagemagick
for the image conversion work but this is already a major improvement.