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

Photo - file size much larger when saving with v2


Recommended Posts

I just noticed that a v1 .afphoto file with a bunch of effects and layers has a much larger file size after saving with v2 (v1: 8.7 MB, v2: 14.3 MB). No changes were made, the file was just opened and saved immediately afterwards.

Is this normal behavior? Maybe some 'maintain compatibility' option simular to Photoshop? Couldn't find anything like that in the settings though.

 

Edit: OS is Windows in case that matters somehow.

Link to comment
Share on other sites

37 minutes ago, WesternNights said:

No changes were made, the file was just opened and saved immediately afterwards.

Saving would convert the file from V1 format to V2 format, which could involve rewriting certain parts of the data at the end of the file and leaving "gas" (wasted space) where the data previously resided.

You would need to try Save As with a new file name in order to see a more accurate size, I think.

-- 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

Saving under a different name or in a different folder makes no difference.

Could still be some unintended leftover data, of course. Although that would be so amateurish (I happen to be a programmer myself) that I'd consider it quite unlikely. Guess I'll have to take a closer look at the file structure if there is no explanation. Not that it matters too much with today's disk sizes, but on the other hand an almost 66% increase in file size still looks like unnecessary bloat.

Photoshop can (at least in the last version I know) save files that keep compatibility with older PS versios at the cost of file size, so something like that was my first guess here. But since there is no related option in the settings menu, that's also not overly likely.

Link to comment
Share on other sites

1 hour ago, WesternNights said:

But since there is no related option in the settings menu, that's also not overly likely.

And there is no compatibility with older Affinity versions, in any 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

  • Staff

Hi @WesternNights,

I've just quickly tested this, create a file in V1 with some adjustments, saved the file and its 19MB in size.  I then re-saved the file in V2 using Save As and my file is still 19MB in size, so it's not something I've been able to replicate here.

Ideally, to look further into this, we would need one of your V1 files that shows the increase in size when saved in V2.  So if this is something you can replicate from scratch or happen to have a copy of a V1 original file and also a V2 version of the same file that shows the increase the size, please attach them here or upload them to our Dropbox here.

Link to comment
Share on other sites

Just checked this with the last v1 version I had available here (1.10.5). This version already showed the same behavior as v2, so the change that triggers bigger file sizes must have occured earlier than that. The original (smaller) file has been saved in 2017 with a then current v1 version, but I can't tell anymore which version that might have been.

I uploaded the file to the Dropbox for further inspection together with a brief issue description.

Would be great if going forward there was an option to get the old behavior back at least optionally - provided that doesn't break anything. With larger, more complex images than the example an almost 50% reduction in file size would be quite helpful.

Link to comment
Share on other sites

Spent a little bit more time with this. The culprit is an (inactive) displacement live filter used in the document. After removing it file size is down to <8MB when saving with V2.

If I had to debug this I'd first look for some bug/behavior change related to storing displacement maps introduced sometime between 2017 and now. But being a coder myself: might of course also be something more complex/convoluted. Definitely doesn't look right though.

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.