-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Can't save files #26
Comments
@martimpassos can you provide the example image? I will test on my end and show you how to save properly. |
@martimpassos that error implies that at least one of the fields you are setting should be a list type vs. a single value float or string. I was tripped up by this too before. Try adding |
@jamesacampbell thanks for the feedback. After some debugging I figured it was breaking on nan values, so after replacing those with empty strings it ran succesfully. However some fields are acting a bit weird:
and |
@martimpassos you have to |
see the example from the readme: |
I'm also running into a problem. For a test, I'm simply loading a JPEG, then writing it back out. I get these errors: packedIIMData: illegal dataname '183' (183) Here's the code:
Any idea of what's causing this? |
@martimpassos any follow up on this re: trying append ? |
@gregsomm those are warnings correct? My guess is when writing the data back out there are chars / encodings it does not like. I would try to wrap in string or int. |
Thanks for responding. I assume the warnings are correct, but literally, all I do is load the image and then try to save it into a new file - those two lines of code are my entire test. Is there something I can do between the load and the save in order to repair those problems? |
@jamesacampbell sorry for my delayed response. I ended up adopting pyexiftool since it gives me the ability to write GPS tags too, which are of interest to my project. However, working in a cultural institution I can assure that support for IPTC Extension 1.5 fields would be really great. I'm not super happy with pyexiftool since I have to explicitly declare the Exiftool executable's path and this complicates usage inside Docker containers for instance. |
@gregsomm I would need the exact image you are trying so I can run it myself to confirm and get to root cause for you. Standing by and I will be happy to troubleshoot it. I would try the following:
|
@martimpassos I understand and appreciate the explanation. If you have time I would love help with this and I would review and approve any Pull Request that seems reasonable as I have done in the past. Also, if the cultural institution would sponsor this package I can devote some resources to updating it properly 💯 . |
I'm trying to write metadata from a Pandas dataframe to jpg images:
but I'm getting this error:
Am I doing something wrong?
save()
also does not seem to work. The images do not have prior IPTC tags (hence the force=True flag).The text was updated successfully, but these errors were encountered: