EXIF info is not saved from Sony picture on Windows Vista

Bug #311644 reported by fxp
10
Affects Status Importance Assigned to Milestone
Phatch
Invalid
Undecided
Stani

Bug Description

I'm using phatch under vista. pyexiv2 is installed. I can drop an image onto the exif inspector, and exif data is displayed. Even with "save exif/ipct data" checked, the resulting image does not contain exif data.

Perhaps this is related to the following message given by geosetter when I change the image "Warning: [minor] Entries in ExifIFD were out of sequence. Fixed."

Action script:

{'actions': [{'fields': {'Background Colour': u'#444444',
                         'Bottom Left Corner': 'Rounded',
                         'Bottom Right Corner': 'Rounded',
                         'Opacity': u'100',
                         'Radius': u'2 %',
                         'Top Left Corner': 'Rounded',
                         'Top Right Corner': 'Rounded',
                         '__enabled__': u'true'},
              'label': 'Round'},
             {'fields': {'Constrain Proportions': u'yes',
                         'Height': u'1600 px',
                         'Resample Image': 'bicubic',
                         'Resolution': u'<dpi>',
                         'Scale down only': u'yes',
                         'Width': u'1600 px',
                         '__enabled__': u'true'},
              'label': 'Scale'},
             {'fields': {'Background Colour': u'#ffffff',
                         'Border': u'1 %',
                         'Force Background Colour': u'true',
                         'Horizontal Offset': u'1 %',
                         'Shadow Blur': u'20',
                         'Shadow Colour': '#444444',
                         'Vertical Offset': u'1 %',
                         '__enabled__': u'true'},
              'label': 'Shadow'},
             {'fields': {'As': u'jpg',
                         'Filename': u'<filename>',
                         'In': u'C:\\Users\\Felix\\Desktop\\test\\',
                         'JPG Quality': u'85',
                         'JPG Size Maximum': '0kb',
                         'JPG Size Tolerance': '5%',
                         'PNG Optimize': u'false',
                         'Resolution': u'<dpi>',
                         '__enabled__': u'true'},
              'label': 'Save'}],
 'description': u'Beschreibung f\xfcr die Aktionsliste'}

Revision history for this message
fxp (fxp-gmx) wrote :
fxp (fxp-gmx)
description: updated
Revision history for this message
Stani (stani) wrote :

Thanks for reporting this bug. I am afraid this bug is related to the pyexiv2 version for Windows. Phatch just uses its API, which works on Linux and should on Windows Vista too. Unfortunately I don't have Vista, so I can't test this myself easily. I know someone with Windows XP, so I could give a try there. Can you provide me with a link from where you installed pyexiv2 for Windows?

Changed in phatch:
assignee: nobody → stani
status: New → Incomplete
Revision history for this message
Normand C (gemnoc) wrote :

I have the same bug on Ubuntu 8.04, with the 0.1.3 version from the offical repository, as well as the <phatch_0.1.6-0ubuntu1~8.04~ppa1_all.deb> installer from your website. (By the way, this version is labeled 0.1.5 in the About menu). I also lose the rotate info from the generated file.

What I don't understand is that the first time after I crossed the «Save metadata» checkbox, it worked, now it won't anymore.

Revision history for this message
Stani (stani) wrote :

@NormC: What happens if you delete the ~/.phatch folder? Does it than work again once?

Revision history for this message
Normand C (gemnoc) wrote :

Hi Stani,

Same thing. I deleted the .phatch folder, and the EXIF info is still not saved after conversion. I also lose the rotate info.

Revision history for this message
Olivier Six (olivier-six) wrote :

I am using Ubuntu 8.10, phatch 0.1.5, pyexiv2 0.1.2-4build1, exiv2 0.171ubuntu1, and libexiv2-4 0.17-1ubuntu1

I don't get any exif informations after any batch.

Revision history for this message
fxp (fxp-gmx) wrote :

To me, it seems as if Phatch leaves EXIF info within the images when used as a drag&drop target or chosing single files for conversion.
When chosing a whole folder for batch conversion, EXIF info gets lost.

Anyone to confirm that?

Revision history for this message
Stani (stani) wrote :

I tried to reproduce this bug, but unfortunately I can't. Everything works fine here. Please attach a zipped folder with some images and the action list. As soon as I can reproduce this bug, I can try to fix it.

Also please start Phatch from the command line, by starting this command from the phatch folder:
$ python phatch.py

See if you notice any error output.

Revision history for this message
Stani (stani) wrote :

Please attach a zipped folder with some images and the action list, if you want to reopen this bug.

Changed in phatch:
assignee: stani → nobody
status: Incomplete → Invalid
Revision history for this message
ChadRM (register-brainsprain) wrote :

Also receiving this error with Phatch on two installs of 9.04 of Ubuntu and Phatch 0.1.5.

Attached find a zip file containing two JPG files -- the original, and another one processed by Phatch. Just a simple resize. Using the Phatch EXIF tag examiner, note that the EXIF tags vanish completely. Have reproduced this regardless of whether or not the "Save Metadata (exif & itpc)" checkbox is ticked. On this particular run, the box WAS ticked.

When run as requested, the console message received was:

/var/lib/python-support/python2.6/phatch/core/lib/formField.py:272: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message

Thanks!
Chad

Revision history for this message
Stani (stani) wrote :

I'll check this again in a couple of weeks.

Changed in phatch:
status: Invalid → New
Revision history for this message
Stani (stani) wrote :

Sorry, I still can't reproduce this problem on Ubuntu 9.04 (i386 and 64 bit).

Are you sure you have python-pyexiv2 installed?
sudo apt-get install python-pyexiv2

Do the "Exif" and "Iptc" options appear in the dropdown list (not just "Pexif" and "Zexif")? See attached screenshot in next comment.

@fxp:
How did you install pyexiv2? Please provide full details

Changed in phatch:
assignee: nobody → stani (stani)
status: New → Invalid
Revision history for this message
Stani (stani) wrote :
Revision history for this message
Stani (stani) wrote :

As I am working with a new version of Phatch, this is the actionlist I used. The actionlist is based on yours but it has been updated. (E.g. Phatch now follows American spelling for color.) Please try out the latest version of phatch with:
bzr lp:phatch

Start Phatch with:
python phatch.py

Revision history for this message
Stani (stani) wrote :

With Chads photo I could reproduce the problem. However I am afraid this is a bug in python-pyexiv2. Let me check this out. Interesting, thanks for your patience.

Changed in phatch:
importance: Undecided → High
status: Invalid → Confirmed
Revision history for this message
Stani (stani) wrote :

@fxp:
How did you install pyexiv2? Please provide full details.

@Olivier, Norm C
Please upload an example picture. Which camera are they taken with? Without pictures I can't help you.

@Chad
Your case is handled in bug #372646

Changed in phatch:
status: Confirmed → Incomplete
summary: - EXIF info is not saved
+ EXIF info is not saved from Sony picture on Windows Vista
Changed in phatch:
importance: High → Undecided
Revision history for this message
Stani (stani) wrote :

@fxp, Olivier, Norm C

If you don't upload the information as requested before june, I will expire this bug:
https://bugs.launchpad.net/phatch/+bug/311644/comments/16

Revision history for this message
Stani (stani) wrote :

As promised, this bug is closed due to lacking information. Feel free to reopen this bug, but only if you provide the information as stated here:
https://bugs.launchpad.net/phatch/+bug/311644/comments/16

As such this bug won't be fixed in the next release of Phatch on which we are working now and which will be released in the near future. It's up to you.

Changed in phatch:
status: Incomplete → Invalid
Revision history for this message
fxp (fxp-gmx) wrote : Re: [Bug 311644] Re: EXIF info is not saved from Sony picture on Windows Vista

Sorry, I cannot add more information as I failed to install phatch von Vista
64bit...

On Tue, Jun 2, 2009 at 6:21 AM, stani <email address hidden> wrote:

> As promised, this bug is closed due to lacking information. Feel free to
> reopen this bug, but only if you provide the information as stated here:
> https://bugs.launchpad.net/phatch/+bug/311644/comments/16
>
> As such this bug won't be fixed in the next release of Phatch on which
> we are working now and which will be released in the near future. It's
> up to you.
>
> ** Changed in: phatch
> Status: Incomplete => Invalid
>
> --
> EXIF info is not saved from Sony picture on Windows Vista
> https://bugs.launchpad.net/bugs/311644
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Phatch = Photo & Batch!: Invalid
>
> Bug description:
> I'm using phatch under vista. pyexiv2 is installed. I can drop an image
> onto the exif inspector, and exif data is displayed. Even with "save
> exif/ipct data" checked, the resulting image does not contain exif data.
>
> Perhaps this is related to the following message given by geosetter when I
> change the image "Warning: [minor] Entries in ExifIFD were out of sequence.
> Fixed."
>
> Action script:
>
> {'actions': [{'fields': {'Background Colour': u'#444444',
> 'Bottom Left Corner': 'Rounded',
> 'Bottom Right Corner': 'Rounded',
> 'Opacity': u'100',
> 'Radius': u'2 %',
> 'Top Left Corner': 'Rounded',
> 'Top Right Corner': 'Rounded',
> '__enabled__': u'true'},
> 'label': 'Round'},
> {'fields': {'Constrain Proportions': u'yes',
> 'Height': u'1600 px',
> 'Resample Image': 'bicubic',
> 'Resolution': u'<dpi>',
> 'Scale down only': u'yes',
> 'Width': u'1600 px',
> '__enabled__': u'true'},
> 'label': 'Scale'},
> {'fields': {'Background Colour': u'#ffffff',
> 'Border': u'1 %',
> 'Force Background Colour': u'true',
> 'Horizontal Offset': u'1 %',
> 'Shadow Blur': u'20',
> 'Shadow Colour': '#444444',
> 'Vertical Offset': u'1 %',
> '__enabled__': u'true'},
> 'label': 'Shadow'},
> {'fields': {'As': u'jpg',
> 'Filename': u'<filename>',
> 'In': u'C:\\Users\\Felix\\Desktop\\test\\',
> 'JPG Quality': u'85',
> 'JPG Size Maximum': '0kb',
> 'JPG Size Tolerance': '5%',
> 'PNG Optimize': u'false',
> 'Resolution': u'<dpi>',
> '__enabled__': u'true'},
> 'label': 'Save'}],
> 'description': u'Beschreibung f\xfcr die Aktionsliste'}
>
>

Revision history for this message
Stani (stani) wrote :

@fxp

Please do not report bugs for Phatch if you didn't succeed to install it in first place. If you have trouble installing Phatch, feel free to post a question on the Phatch forum instead. Of course than give full information of what you tried and what didn't work.

Revision history for this message
fxp (fxp-gmx) wrote :
Download full text (3.1 KiB)

Thanks for explaining me the world. To clarify:I reported this bug half a
year ago while I was using 32bit vista. I supplied all the infos you were
asking for at that time.
Meanwhile, switched to 64bit vista, tried to provide additonal info, but
phatch installation seems not possible at all in 64bit vista.

On Tue, Jun 2, 2009 at 12:14 PM, stani <email address hidden> wrote:

> @fxp
>
> Please do not report bugs for Phatch if you didn't succeed to install it
> in first place. If you have trouble installing Phatch, feel free to post
> a question on the Phatch forum instead. Of course than give full
> information of what you tried and what didn't work.
>
> --
> EXIF info is not saved from Sony picture on Windows Vista
> https://bugs.launchpad.net/bugs/311644
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Phatch = Photo & Batch!: Invalid
>
> Bug description:
> I'm using phatch under vista. pyexiv2 is installed. I can drop an image
> onto the exif inspector, and exif data is displayed. Even with "save
> exif/ipct data" checked, the resulting image does not contain exif data.
>
> Perhaps this is related to the following message given by geosetter when I
> change the image "Warning: [minor] Entries in ExifIFD were out of sequence.
> Fixed."
>
> Action script:
>
> {'actions': [{'fields': {'Background Colour': u'#444444',
> 'Bottom Left Corner': 'Rounded',
> 'Bottom Right Corner': 'Rounded',
> 'Opacity': u'100',
> 'Radius': u'2 %',
> 'Top Left Corner': 'Rounded',
> 'Top Right Corner': 'Rounded',
> '__enabled__': u'true'},
> 'label': 'Round'},
> {'fields': {'Constrain Proportions': u'yes',
> 'Height': u'1600 px',
> 'Resample Image': 'bicubic',
> 'Resolution': u'<dpi>',
> 'Scale down only': u'yes',
> 'Width': u'1600 px',
> '__enabled__': u'true'},
> 'label': 'Scale'},
> {'fields': {'Background Colour': u'#ffffff',
> 'Border': u'1 %',
> 'Force Background Colour': u'true',
> 'Horizontal Offset': u'1 %',
> 'Shadow Blur': u'20',
> 'Shadow Colour': '#444444',
> 'Vertical Offset': u'1 %',
> '__enabled__': u'true'},
> 'label': 'Shadow'},
> {'fields': {'As': u'jpg',
> 'Filename': u'<filename>',
> 'In': u'C:\\Users\\Felix\\Desktop\\test\\',
> 'JPG Quality': u'85',
> 'JPG Size Maximum': '0kb',
> 'JPG Size Tolerance': '5%',
> 'PNG Optimize': u'false',
> 'Resolution': u'<dpi>',
> '__enabled__': u'true'},
> 'label': 'Save'}],
> 'description': u'Beschreibung f\xfc...

Read more...

Revision history for this message
Stani (stani) wrote :

@fxp
I still don't know how or with which link you installed pyexiv2 on Windows 32 bit vista. Phatch runs fine on 64bit. Please describe on the forum what doesn't work for you:
http://photobatch.wikidot.com/forum:start

Revision history for this message
X_FISH (martin-gaskutsche) wrote :

Same problem here (no exif data being saved) but some additional facts that might help find the solution:

I am using Ubuntu (64 bit) and Mint (64 bit). The versions of Phatch should be the same, 0.1.6-1 (as seen in synaptic). The program itself says, it is 0.1.5.

A friend of mine was using Debian (lenny 32 bit) and with his system, the exif data was being saved. He switched to Ubuntu 32 bit -> no exif data has been saved.

I started using Phatch in march 2008 (wrote a little text about it on my website http://www.x-fish.org/index.php?page=blog&blog=080331 ) and experienced the problem, too. Operating system: Ubuntu 32 bit.

Maybe the problem exists due to problems with cameras? I had an Olympus E-10 (back in march 2008) and now I am using a Canon 350d.

To provide you with a sample with the original exif-data from the Canon 305d, here is a tiny picture (resized using gimp):

http://swiss.x-fish.org/images/090806_02_t.jpg

Here the result with phatch, using the original, not altered image (using the actions resize, watermark and saving):

http://swiss.x-fish.org/images/090806_02.jpg

I am checking the exif-data with opera, too. Opera shows me the exif-data as predicted from the "02_t".

Greetings, Martin

Revision history for this message
Stani (stani) wrote :

@Martin,
Maybe this is fixed already. Could you try out the Phatch PPA and see if it still persists?
https://launchpad.net/~stani/+archive/ppa

Revision history for this message
X_FISH (martin-gaskutsche) wrote :

Using 0.2.0.bzr936 with Ubuntu 9.04 I got exif-data in the new picture.

Here is the log:

--8<--- snipp ---

Warning 0:
Failed to save metadata to /home/martin/data/html/web/swiss/images/090806_01.jpg:
pyexiv2: TIFF array element tag 43 has wrong type
Trying again by ignoring tags with following pattern:
Exif[.]Canon

Action: {'fields': {'As': '<type>',
            'File Name': u'<filename>',
            'In': u'/home/martin/data/html/web/swiss/images',
            'JPEG Quality': u'85',
            'JPEG Size Maximum': '0kb',
            'JPEG Size Tolerance': '5%',
            'Metadata': 'yes',
            'PNG Optimize': u'false',
            'Resolution': u'<dpi>',
            'Show Type Options': 'no',
            'TIFF Compression': u'<compression>',
            '__enabled__': 'yes'},
 'label': 'Save'}

None
*

-->8--- snapp ---
_____

Additional comment (not related to the problem being discussed in this thread):

The watermark was not being applied correctly.

The reason: The former action with the german translation "Methode: mit Abstand" was not recognized.

I had to switch to "by Offset", loosing the settings I made so far.

Greetings, Martin

Revision history for this message
Stani (stani) wrote :

There is a bug in pyexiv2 for certain Canon tags. Phatch has a workaround for it which gets logged. This is the text you mentioned.

About the other comment: One reason is that the german translation of Phatch is lagging behind. We need your help here!
https://translations.launchpad.net/phatch/trunk/+pots/phatch

Another reason is because actionlists are not compatible between Phatch 0.1 and 0.2. Right now we don't have time to implement such compatibility, as we need our time for the other bug fixes and new features. I would recommend: start using Phatch 0.2 from the PPA.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.