Transcode heic/heif images
This commit is contained in:
parent
440fb69efc
commit
9078919545
30 changed files with 409 additions and 100 deletions
7
main.js
7
main.js
|
@ -125,8 +125,10 @@ const { ChallengeMainHandler } = require('./ts/main/challengeMain');
|
|||
const { NativeThemeNotifier } = require('./ts/main/NativeThemeNotifier');
|
||||
const { PowerChannel } = require('./ts/main/powerChannel');
|
||||
const { maybeParseUrl, setUrlSearchParams } = require('./ts/util/url');
|
||||
const { getHeicConverter } = require('./ts/workers/heicConverterMain');
|
||||
|
||||
const sql = new MainSQL();
|
||||
const heicConverter = getHeicConverter();
|
||||
|
||||
let systemTrayService;
|
||||
const systemTraySettingCache = new SystemTraySettingCache(
|
||||
|
@ -640,6 +642,11 @@ ipc.on('title-bar-double-click', () => {
|
|||
}
|
||||
});
|
||||
|
||||
ipc.on('convert-image', async (event, uuid, data) => {
|
||||
const { error, response } = await heicConverter(uuid, data);
|
||||
event.reply(`convert-image:${uuid}`, { error, response });
|
||||
});
|
||||
|
||||
let isReadyForUpdates = false;
|
||||
async function readyForUpdates() {
|
||||
if (isReadyForUpdates) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue