Aravindhan
Aravindhan

Reputation: 15628

How to add a thumbnail Image for an encrypted image?

I Encrypted an image by using AES algorithm. Encryption and Decryption works well. Now the thumbnail of the image is the default image.

enter image description here

But I want something that looks useful for the user. like this image.

enter image description here

I have searched a lot but I can find only the quicklook for the document based applications. How can I add thumbnail for jpeg, png or tiff images ?

Upvotes: 0

Views: 138

Answers (1)

regulus6633
regulus6633

Reputation: 19030

I assume you know the path to the file when you create it and you have the icon images in your project, so then just use the NSWorkspace method setIcon:forFile:options:.

Upvotes: 1

Related Questions