How do I successfully remove an images property items? I have tried loading the image and then looping thru using the image.ProperyIdList and then calling .RemovePropertyItem and then saving the image to a new file, but the new file still has all the metadata. I have also tried to zero out all the bytes for each propertyItem.value but that causes a genric gdi+ error when I save. I have also tried pushing the image into a memeory stream and back, thinking it would clear the metadata. Any ideas?
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- 'System.Threading.ThreadAbortException' in
- how to use special characters like '<'
- CV2 Image Error: error: (-215:Assertion failed) !s
相关文章
- vb.net 关于xps文件操作问题
- Use savefig in Python with string and iterative in
- Where does this quality loss on Images come from?
- Specifying image dimensions in HTML vs CSS for pag
- Checking for DBNull throws a StrongTypingException
- How to insert pictures into each individual bar in
- Using the typical get set properties in C#… with p
- How do I append metadata to an image in Matlab?
I was able to accomplish the following by using the code below. It is not the fastest but it does work. I basically strip off the metadata I want and then create a new image for the web with no properties, thus making sure the personal data is off the photo.