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

Affinity Photo - A document made entirely of linked images is still over 120mb?


Recommended Posts

Hi,

Why is my document over 120mb when it's made entirely of linked images?

affinity_photo2_linked_images_large_document_size.thumb.webp.a36baa2307ad6a063aef17de4e35cdf0.webp

Affinity Photo 2.4.2 for Windows  OS: Windows 10 Pro x64 ver. 22H2  CPU: AMD Ryzen 7950X 16-core  RAM: 64 GB DDR5-6400  GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98  NVMe SSD Samsung 980 Pro 1 TB  Monitors: 2x Eizo ColorEdge CS2420 24"

Link to comment
Share on other sites

Hi Alex. Try these and let us know if they help.

  1. Ensure File > Save History with Document is unselected. If it's selected, turn it off and choose Save As. Is the new document smaller?
  2. Open the document and Save As. Is the new document smaller?
  3. Using the Resource Manager, select both of the resources, embed them, and then link them again. Now choose Save As. Is the new document smaller?

Good luck

Download a free manual for Publisher 2.4 from this forum - expanded 300-page PDF

My system: Affinity 2.4.2 for macOS Sonoma 14.4.1, MacBook Pro 14" (M1 Pro)

Link to comment
Share on other sites

Thanks for the suggestions, @MikeTO. I tried them all, but unfortunately none of them helped. It's still the exact same size - 126mb.

Affinity Photo 2.4.2 for Windows  OS: Windows 10 Pro x64 ver. 22H2  CPU: AMD Ryzen 7950X 16-core  RAM: 64 GB DDR5-6400  GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98  NVMe SSD Samsung 980 Pro 1 TB  Monitors: 2x Eizo ColorEdge CS2420 24"

Link to comment
Share on other sites

In that case I think you'd need to share the file for somebody to review. If you can't share it here publicly then perhaps Serif will provide a dropbox link, unless they or somebody else has more suggestions.

Cheers

Download a free manual for Publisher 2.4 from this forum - expanded 300-page PDF

My system: Affinity 2.4.2 for macOS Sonoma 14.4.1, MacBook Pro 14" (M1 Pro)

Link to comment
Share on other sites

I don't think I can share the file here publicly. I can do so privately.

Affinity Photo 2.4.2 for Windows  OS: Windows 10 Pro x64 ver. 22H2  CPU: AMD Ryzen 7950X 16-core  RAM: 64 GB DDR5-6400  GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98  NVMe SSD Samsung 980 Pro 1 TB  Monitors: 2x Eizo ColorEdge CS2420 24"

Link to comment
Share on other sites

I tried to upload it, but clicking on the link leads to a page that says "This file request has been closed or deleted, or never existed."

Affinity Photo 2.4.2 for Windows  OS: Windows 10 Pro x64 ver. 22H2  CPU: AMD Ryzen 7950X 16-core  RAM: 64 GB DDR5-6400  GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98  NVMe SSD Samsung 980 Pro 1 TB  Monitors: 2x Eizo ColorEdge CS2420 24"

Link to comment
Share on other sites

  • Staff

Hi @Alex_M,

21 minutes ago, Alex_M said:

I tried to upload it, but clicking on the link leads to a page that says "This file request has been closed or deleted, or never existed."

Not sure what went wrong with that link, but heres one that definitely works: https://www.dropbox.com/request/O3tm5KPbZQ0BaMC0y7Wz 

Link to comment
Share on other sites

That one worked. Thanks.

Affinity Photo 2.4.2 for Windows  OS: Windows 10 Pro x64 ver. 22H2  CPU: AMD Ryzen 7950X 16-core  RAM: 64 GB DDR5-6400  GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98  NVMe SSD Samsung 980 Pro 1 TB  Monitors: 2x Eizo ColorEdge CS2420 24"

Link to comment
Share on other sites

  • Staff

Hi @Alex_M,

Thanks for uploading the files.

If you view the Snapshot panel (Window>Snapshots) you'll see there is a snapshot, which will be where the bulk of the size is coming from.  Deleting this and then using File>Save As should result in a much smaller file, however there is a bug we have logged where deleting the Snapshot layer doesn't reduce the file size.  I will update that bug report and link back to this thread.

If you recreate that file, don't add a snapshot, you should find it stays much much smaller in size.

Link to comment
Share on other sites

4 hours ago, stokerg said:

Deleting this and then using File>Save As should result in a much smaller file

@stokerg

I've noticed with the last (two?) 2.1 betas when I delete the snapshot and Save As... there often isn't a reduction. So it's good to know it's being worked on. AP file sizes are pretty bloated by default even with no edits.

A couple of questions:

  1. After deleting the snapshot do I need to Save As... to a new file name (this was required at some point in the past) or will the same filename now work?
     
  2. A. Are there any plans to give us the option to, by default, not have the snapshot in the first place so this rigamarole can be avoided completely?
    B. If 2A is no, will the macro facility be improved to a point where we can write a macro to automatically do the steps for us?

Thanks.

Len
Affinity Photo 2 | QCAD 3 | FastStone | SpyderX Pro | FOSS:  ART darktable  XnView  RawTherapee  Inkscape  G'MIC  LibreOffice
Windows 11 on a 16 GB, Ryzen 5700 8-core laptop with a cheesy little embedded AMD GPU

Canon T8i / 850D | Canon EF 24-70mm F4L IS USM | Canon EF 70-200mm F4 L USM | Rikenon P 50mm f/1.7 | K&F Concept Nano-X filters
...desperately looking for landscapes in Nolandscapeland        https://www.flickr.com/photos/14015058@N07/

Link to comment
Share on other sites

  • Staff
19 minutes ago, lphilpot said:

After deleting the snapshot do I need to Save As... to a new file name (this was required at some point in the past) or will the same filename now work?

I would do a Save As as that should trigger the streamlining we do on afphoto files (but not currently).

19 minutes ago, lphilpot said:

A. Are there any plans to give us the option to, by default, not have the snapshot in the first place so this rigamarole can be avoided completely?

Unless I'm mistaken, this is already off, isn't automatic and any Snapshots that appear in the Snapshots panel would have been added by the user. 

I'll raise this with the QA team, as has been pointed by @Old Bruceyou do get a Snapshot layer when opening an image file like a PNG/JPG and there isn't a way to disable that from what i know, other than deleting it manually.

Link to comment
Share on other sites

11 minutes ago, lphilpot said:

A. Are there any plans to give us the option to, by default, not have the snapshot in the first place so this rigamarole can be avoided completely?

For what it is worth here on my Mac if I open a raw file there is no snapshot. If it is another format then when I open a PNG for instance there is a Snapshot of the Background layer. If I place a PNG in a new document there is no Snapshot.

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

7 minutes ago, stokerg said:

Unless I'm mistaken, this is already off, isn't automatic and any Snapshots that appear in the Snapshots panel would have been added by the user.

image.png.45e616125a80cbdf06038554f7817e28.png

This is after opening a TIFF. I don't use Photo for raw processing, I just open developed TIFFs and always get a snapshot by default. The only time there's not one is when I stitch a pano or build a focus stack. I'm on Windows 11, if that matters.

9 minutes ago, stokerg said:

I would do a Save As as that should trigger the streamlining we do on afphoto files (but not currently).

So you're saying we currently need to Save As but at some point we thereafter won't?

Right now, it's very typical for a ~130MB TIFF to by default end up as a ~300MB afphoto file, with no edits -- Just open and save. Sometimes after deleting the snapshot an resaving it will drop to ~125MB, but by no means every time.

Len
Affinity Photo 2 | QCAD 3 | FastStone | SpyderX Pro | FOSS:  ART darktable  XnView  RawTherapee  Inkscape  G'MIC  LibreOffice
Windows 11 on a 16 GB, Ryzen 5700 8-core laptop with a cheesy little embedded AMD GPU

Canon T8i / 850D | Canon EF 24-70mm F4L IS USM | Canon EF 70-200mm F4 L USM | Rikenon P 50mm f/1.7 | K&F Concept Nano-X filters
...desperately looking for landscapes in Nolandscapeland        https://www.flickr.com/photos/14015058@N07/

Link to comment
Share on other sites

  • Staff
1 minute ago, Old Bruce said:

For what it is worth here on my Mac if I open a raw file there is no snapshot. If it is another format then when I open a PNG for instance there is a Snapshot of the Background layer. If I place a PNG in a new document there is no Snapshot.

Thank you @Old Bruce, I'd totally forgotten about the Snapshot from opening an image and so did the other Tech Agent I checked with before i replied!

Link to comment
Share on other sites

  • Staff
2 minutes ago, lphilpot said:

So you're saying we currently need to Save As but at some point we thereafter won't?

 

I would always recommend a Save As, as outlined by one of the Developers here it's the best way to force streamlining, which should reduce the file size.  It just doesn't work for the issue that has been posted about, which is related to the Snapshot layer.

Link to comment
Share on other sites

24 minutes ago, stokerg said:

I would always recommend a Save As, as outlined by one of the Developers here it's the best way to force streamlining, which should reduce the file size.  It just doesn't work for the issue that has been posted about, which is related to the Snapshot layer.

So my current (2.1 beta 1730) process is:

  1. Open a TIFF, e.g. IMG_1234.tif
  2. Save it as IMG_1234x.afphoto
  3. Close it
  4. Re-open it
  5. Delete the snapshot
  6. Save it as IMG_1234.afphoto
  7. Delete IMG_1234x.afphoto

Given the current state of affairs, is that as concise as possible (six steps to save vs. the usual one)?

Thanks.

Len
Affinity Photo 2 | QCAD 3 | FastStone | SpyderX Pro | FOSS:  ART darktable  XnView  RawTherapee  Inkscape  G'MIC  LibreOffice
Windows 11 on a 16 GB, Ryzen 5700 8-core laptop with a cheesy little embedded AMD GPU

Canon T8i / 850D | Canon EF 24-70mm F4L IS USM | Canon EF 70-200mm F4 L USM | Rikenon P 50mm f/1.7 | K&F Concept Nano-X filters
...desperately looking for landscapes in Nolandscapeland        https://www.flickr.com/photos/14015058@N07/

Link to comment
Share on other sites

10 minutes ago, lphilpot said:

So my current (2.1 beta 1730) process is:

...

Does not 

  1. Open file 1234.TIFF
  2. Delete Snapshot
  3. Save as... 1234.afphoto

work for you? Meaning no Snapshot in 1234.afphoto when you open it later.

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

7 minutes ago, Old Bruce said:

Does not 

  1. Open file 1234.TIFF
  2. Delete Snapshot
  3. Save as... 1234.afphoto

work for you?

I'd have to try again to confirm (with the latest beta, etc.) but in the past it has not. In fact that sequence was the shortest I was able to perform and (at the time) still reliably get a file size reduction. Now with the current 1730 beta it doesn't always happen anymore. It looks like an option to force streamlining with every save would at least workaround the issue as long as the snapshot was deleted.

It just seems Photo does a number of things by default that should be configurable. You know, the old rule that "software should do what it's told, when it's told, how it's told and not unless it's told."  Kinda like Unix. 🙂

Len
Affinity Photo 2 | QCAD 3 | FastStone | SpyderX Pro | FOSS:  ART darktable  XnView  RawTherapee  Inkscape  G'MIC  LibreOffice
Windows 11 on a 16 GB, Ryzen 5700 8-core laptop with a cheesy little embedded AMD GPU

Canon T8i / 850D | Canon EF 24-70mm F4L IS USM | Canon EF 70-200mm F4 L USM | Rikenon P 50mm f/1.7 | K&F Concept Nano-X filters
...desperately looking for landscapes in Nolandscapeland        https://www.flickr.com/photos/14015058@N07/

Link to comment
Share on other sites

  • Staff
Just now, lphilpot said:

Now with the current 1730 beta it doesn't always happen anymore. It looks like an option to force streamlining with every save would at least workaround the issue as long as the snapshot was deleted.

Please make sure you are reporting beta issues in the beta section of the Forums here, as it's a different team that's looking after the beta and replies here or issues raised, will be missed.

Link to comment
Share on other sites

2 minutes ago, stokerg said:

Please make sure you are reporting beta issues in the beta section of the Forums here, as it's a different team that's looking after the beta and replies here or issues raised, will be missed.

Yes, I do. That was just an aside in that context. However, I'd like to know I'm following the right procedure so I don't falsely report issues.

Len
Affinity Photo 2 | QCAD 3 | FastStone | SpyderX Pro | FOSS:  ART darktable  XnView  RawTherapee  Inkscape  G'MIC  LibreOffice
Windows 11 on a 16 GB, Ryzen 5700 8-core laptop with a cheesy little embedded AMD GPU

Canon T8i / 850D | Canon EF 24-70mm F4L IS USM | Canon EF 70-200mm F4 L USM | Rikenon P 50mm f/1.7 | K&F Concept Nano-X filters
...desperately looking for landscapes in Nolandscapeland        https://www.flickr.com/photos/14015058@N07/

Link to comment
Share on other sites

On 3/21/2023 at 11:49 AM, stokerg said:

Hi @Alex_M,

Thanks for uploading the files.

If you view the Snapshot panel (Window>Snapshots) you'll see there is a snapshot, which will be where the bulk of the size is coming from.  Deleting this and then using File>Save As should result in a much smaller file, however there is a bug we have logged where deleting the Snapshot layer doesn't reduce the file size.  I will update that bug report and link back to this thread.

If you recreate that file, don't add a snapshot, you should find it stays much much smaller in size.

Hi,

Yes, there's indeed a snapshot there. I hadn't created the snapshot though. As others have pointed out, it seems that Photo created it automatically without any warning or me knowing. I tried deleting the snapshot and doing "save as", but this didn't reduce the file size. Looks like a bug. Maybe it's a good idea to let the user know that a snapshot has been created and also have control over weather and when one is created.

Affinity Photo 2.4.2 for Windows  OS: Windows 10 Pro x64 ver. 22H2  CPU: AMD Ryzen 7950X 16-core  RAM: 64 GB DDR5-6400  GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98  NVMe SSD Samsung 980 Pro 1 TB  Monitors: 2x Eizo ColorEdge CS2420 24"

Link to comment
Share on other sites

  • 1 year later...

Hello. I still have this problem with Affinity Photo 2.4.2. A document with a single linked image layer (PNG image) is almost 400mb. Can you kindly look into this issue? Would you like me to send you this document?

Affinity Photo 2.4.2 for Windows  OS: Windows 10 Pro x64 ver. 22H2  CPU: AMD Ryzen 7950X 16-core  RAM: 64 GB DDR5-6400  GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98  NVMe SSD Samsung 980 Pro 1 TB  Monitors: 2x Eizo ColorEdge CS2420 24"

Link to comment
Share on other sites

  • Staff

The file format is not designed to be small it is designed with fast drawing in mind and image previews of all files are saved. "Linked" in an affinity file mostly means "watch out for possible changes" so the internally saved previews (at a number of sizes/zoom levels) are still there in the saved file, just not the original source file. Without those previews it couldn't draw quickly as you change zoom level.

Perhaps we could offer a slower loading smaller sized "save minimal" that always regenerates the previews of a linked file on each load but that's not what we have currently, sorry.

Patrick Connor
Serif Europe Ltd

"There is nothing noble in being superior to your fellow man. True nobility lies in being superior to your previous self."  W. L. Sheldon

 

Link to comment
Share on other sites

Yes, such option would be greatly appreciated!!! :)

I acknowledge the speed of Affinity Photo and I can attest to it. However, when I finish a project and go on to archive it, speed becomes irrelevant since most of the time it's not expected for me to work on it anymore (or at least not actively). In this case, I want my files to be as small as possible in order to save on disk space (cloud storage can be expensive with large imagery and other media!). 400mb is waaay too much for a simple 8-bit document at 4800x3200 px with a single image layer, I think you would agree. Now consider that I have at least 4 of these documents on average in a project and you get the idea of how quickly things start getting out of control sizewise. That's 1.4 GB of storage that shrinks down to just 75 MB when I use linked layers/purge the cache and archive with 7zip (I've just tested this).

I certainly can use the workaround where I create a new document from scratch and copy all the contents from the old one in there and save again with a new name. However, this is really cumbersome and time consuming with a lot of documents when there could be a simple feature called "purge cache" or similar that removes all cached stuff from the file when the user is not expected to work on it actively and it's fine to wait a bit more for things to load next time. I hope you consider this feature. Let me know if I should post a new thread about it in the Feedback & Suggestions section.

Affinity Photo 2.4.2 for Windows  OS: Windows 10 Pro x64 ver. 22H2  CPU: AMD Ryzen 7950X 16-core  RAM: 64 GB DDR5-6400  GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98  NVMe SSD Samsung 980 Pro 1 TB  Monitors: 2x Eizo ColorEdge CS2420 24"

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.