Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

[[1](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/vault_util.ts#L13)][[2](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/vault_util.ts#L23)][[3](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/vault_util.ts#L44)][[4](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/settings/settings.ts#L310)][[5](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/valut_handler.ts#L73)][[6](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/valut_handler.ts#L125)][[7](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/valut_handler.ts#L136)][[8](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/valut_handler.ts#L151)][[9](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/valut_handler.ts#L250)][[10](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/main.ts#L220)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder

[[1](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/engines/psd/psd.ts#L37)]:You should change all instances of `var` to either `const` or `let`. `var` has function-level scope, so it can easily lead to bugs if you're not careful. Here's a pretty good guide with examples of why not to use `var`: [why `var` is obsolete](https://javascript.plainenglish.io/4-reasons-why-var-is-considered-obsolete-in-modern-javascript-a30296b5f08f)

[[1](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/img_post_processor.ts#L4)][[2](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/img_post_processor.ts#L42)][[3](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/img_post_processor.ts#L43)]:This class is only available on desktop, which means that this will throw errors on mobile (that's a problem since you have `isDesktopOnly` marked as `false` in your manifest.json file.

[[1](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/img_post_processor.ts#L494)][[2](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/img_post_processor.ts#L496)][[3](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/img_post_processor.ts#L497)][[4](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/img_post_processor.ts#L498)][[5](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/live_preview_canvas.ts#L129)][[6](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/live_preview_canvas.ts#L130)][[7](https://github.com/luxmargos/obsidian-image-magician-plugin/blob/14de4ce63c3b888ec9ce8c4c8cf60d585f4ae0bd/src/editor_ext/live_preview_canvas.ts#L131)]:You should avoid assigning styles via JavaScript or in HTML and instead move all these styles into CSS so that they are more easily adaptable by themes and snippets.




---



Do <b>NOT</b> open a new PR for re-validation.
Once you have pushed all of the required changes, the bot will reevaluate your PR within 4 hours.
If you think some of these results are incorrect, please include `/skip` in your comment and the reason why you think the results are incorrect.