Jump to content
You must now use your email address to sign in [click for more info] ×

Photo: JPEG is recompressed when editing metadata only


Recommended Posts

Affinity Photo recompresses JPEG images when metadata is edited even though the image itself has no changes.

Steps:

1. Make a copy of a test JPEG image as backup.

2. Edit metadata in one copy of the image in Affinity Photo.

3. Stack before and after images in layers and view as Difference.

 

Link to comment
Share on other sites

I think that's to be expected. APh is no metadata editor by definition.

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

9 minutes ago, loukash said:

I think that's to be expected. APh is no metadata editor by definition.

But it could be improved to recognize that only the metadata has been changed, and to not affect the image data in that case 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

9 minutes ago, walt.farrell said:

But it could be improved to recognize that only the metadata has been changed, and to not affect the image data in that case 

Agreed. IrfanView does this if, for example, you merely change the Rotation metadata.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

1 hour ago, loukash said:

I think that's to be expected. APh is no metadata editor by definition.

My perspective is that any application that has a metadata editing feature is, in effect, a metadata editor and expected to conform to the established standards of metadata editing.

Recompressing an otherwise unaltered JPEG is unexpected behaviour because the standards are designed to avoid that.

Turns out I got around the immediate problem using EXIFTool GUI, but it is much slower and more cumbersome to correct metadata that way (open another app, then browse down through a tree of folders, rather than just drag and drop from the currently open Explorer project working folder into an already open AFPhoto).

Link to comment
Share on other sites

9 hours ago, Paul Coddington said:

but it is much slower and more cumbersome to correct metadata that way (open another app, then browse down through a tree of folders, rather than just drag and drop from the currently open Explorer project

In the meantime, you could improve that by setting up File Explorer so you can use "Open with" or "Send to" to directly send a file to EXIFTool GUI, or ise another EXIF editor (such as Irfanview, mentioned earlier) that may allow that directly.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

Thus, I find myself returned to the hallowed halls of the university: "Define 'definition'."

There is no definition of what Photo is, but in practice, it's a budget-friendly editor very much "inspired" by Photoshop with its own strengths and weaknesses. Here, Photo should align itself with Photoshop, as it's not uncommon for a professional photographer to quickly edit an image in Photoshop. It's not always a batch task as some might think, and I even have an action set up for this, so I just need to enter the description and title, and the rest regarding copyright is inserted correctly. I often have to ship just ONE image in a hurry.

Since Photo's ancient algorithms for saving in JPG aren't very good, it's doubly important to avoid the scenario of recompression.

Quote

 

When you only change the metadata in a file in Adobe Photoshop CC and save the file, the actual data of the image typically does not get recompiled or recompressed if you do not make changes to the image itself. This means that the quality and compression of the image do not change merely by altering metadata such as description, tags, copyright information, etc.

However, it's important to pay attention to the save settings when you save the file after changing metadata. Photoshop offers different formats and settings for the saving process, and some of these can affect the file's compression. For example, if you save a JPEG file, Photoshop often asks about quality settings, which can change the level of compression. If you just make sure to keep the original settings and do not change the quality or format options, the file should not be recompressed based on changes in metadata alone.

At the very least, protection against unwanted recompression would be an excellent safeguard against accidents for customers using Photo. I, for one, do not.

Experienced Quality Assurance Manager - I strive for excellence in complex professional illustrations through efficient workflows in modern applications, supporting me in achieving my and my colleagues' goals through the most achievable usability and contemporary, easy-to-use user interfaces.

 

Link to comment
Share on other sites

10 hours ago, Paul Coddington said:

My perspective is that any application that has a metadata editing feature is, in effect, a metadata editor and expected to conform to the established standards of metadata editing.

In the mythical "perfect world", yes.

In the real world, however, e.g. even Apple has totally messed this up, as we have noticed just recently upon my bug report to the PixlPath developer: https://pixlpath.com/blog.html#2024_03_05

From my (limited) experience with a few cross-platform apps, XnViewMP is pretty good at writing metadata losslessly. It can be even configured not to change the modification date while doing so.

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

20 minutes ago, Bit Disappointed said:

At the very least, protection against unwanted recompression would be an excellent safeguard against accidents for customers using Photo. I, for one, do not.

You do not what? :/

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

37 minutes ago, Alfred said:

You do not what? :/

"Use Photo," presumably.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

One thing to remember is that Photo *never* actually opens a JPEG.  It always works with its own custom document format.

When you "open" / import a JPEG image, it is being placed on a layer in an Affinity document.

When you "save" / "export" the document, you are exporting the Affinity document, not just the JPEG image.  Even if the image itself was not touched, you are not exporting the original JPEG, but the Affinity document which just happens to match its appearance.

Consequently, you are not "recompressing" the JPEG, but newly compressing the Affinity document which did not previously exist.

Link to comment
Share on other sites

24 minutes ago, walt.farrell said:

"Use Photo," presumably.

Duh, thanks! If instead of “customers using Photo” it had been worded as “customers who use Photo” then “I, for one, do not” would have immediately made sense to me.

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

21 hours ago, Paul Coddington said:

using EXIFTool GUI, but it is much slower and more cumbersome to correct metadata that way

I encourage you to explore the capabilities of this application - it is a unique tool for bulk metadata editing.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.