-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper PSD support #498
Proper PSD support #498
Conversation
…-size and thumbnail PSDs
Thank you very much for this quick answer! I tried it and I must say it works very well. I'm really impressed that even with heavy psd files it loads them relatively fast and the quality when double-clicking is very good 😄 While testing it, I've noticed a few flaws that I've tried to debug, but I think they're related to things that are too deep in the code base for me to simply fix: So I got different results on the generated thumbnails depending on the psd properties, but all of them looked fine when I double-clicked on them.
So, at the moment, you can't have both a decent quality thumbnail with a correct aspect ratio AND actual dimensions in its info panel. I also noticed that the thumbnails generated for the psd files in the ".../AppData/Local/Temp/Allusion/thumbnails" directory are larger than the others. Reading the code, I noticed that you set the size of the largest dimension to 600px, but strangely, on the new psd thumbnails, it's their smallest dimension that is set to 600px (is this intended?). Ps: I think I found a bug (although it seems to be on the ag-psd side) that occurs when you have at least one custom selection stored in the channel tab of your psd. Even if it is not checked, the generated thumbnail will be masked based on the first top custom layer in that tab (I don't think this is a feature). A simple solution is to generate a saved selection of your entire canvas and place it above your custom layers in the channel tab. (You can see in the image below the behavior of Allusion based on the state of the psd's channel tab) This will force Allusion to recreate the psd thumbnail with intended transparency, correct aspect ratio and actual dimensions in the info panel. |
Sorry I missed the notification as I am being flooded from work notification. I will take a look in the evening. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Regarding performance, I think the way we use threads needs some overhaul anyways but web workers do not make it so easy 😅
Thanks for taking a close look @Krakor92 !
Nice catch on that last one, sounds like it's worth a bug report over there 😃 |
I've had a quick look around, but I can't find a robust way to trigger logic after upgrading an Electron application (for deleting low res psd thumbnails). We could also just tell people to delete their thumbnail folder in the release notes if it bothers them, then they'll be recreated |
…-size and thumbnail PSDs
…isualLibrary into better-psd-support
Sorry it's taking so long to get released, life got in the way... I'm going to try my best to get it done this weekend! |
Added an ImageLoader for PSD files based on ag-psd
Closes #496