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

Recommended Posts

I recently presented this topic, but I need to re-post it, since I am not happy with JPEG compression on affinity, and need some advice please.

 

I attach two images, one has been exported and compressed to JPEG at around 1mb (its now a screenshot PNG image, but it replicates exactly how the JPEG turned out), the other is the affinity version.

 

The JPEG image is clearly unusable.  1MB should be absolutely ample for a very good quality JPEG image.

 

Is this an Affinity software issue? Like most people, I do need to send small JPEG files to friends and family, and at 1MB, and indeed smaller, they should look fine.

 

Can anyone help on this? Thank you.

 

Jason

2019-01-25 (1).png

2019-01-25.png

Link to comment
Share on other sites

For anyone to help in a satisfactory way, we'll probably need the original image file, or .afphoto file, before export so we can play with it ourselves.

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

Thanks, Donovan. Next questions:

  1. What size (pixel dimensions) are you trying to export it. You're currently 6032px x 4032px, which is 24.32 megapixels.
  2. What color format and pixel depth are you trying to export it? You're currently RGBA/16.

I doubt that anyone whom you're casually sharing with needs an image that large, and probably they don't need 16-bits of color, especially if you're sharing a degraded form like JPEG.

Keeping it your current size and pixel depth you're at over 1MB even choosing 5% quality for the JPEG export. If you resize to 754x504px during export, even at 100% you end up with about 800KB. Cut it down to 80% quality and you're down under 200KB (even at a 16-bit depth).

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

Im a beginner at this so please bear with me.  I merely did some editing in RAW straight from the camera, (including Overlay paint tool for the sky), then in Persona, amended the brightness, and then exported it to JPEG and moved the slider so the JPEG file size was around 1MB.

Link to comment
Share on other sites

2 minutes ago, Donovan said:

Im a beginner at this so please bear with me.  I merely did some editing in RAW straight from the camera, (including Overlay paint tool for the sky), then in Persona, amended the brightness, and then exported it to JPEG and moved the slider so the JPEG file size was around 1MB.

I understand. But if you want small files, with good quality, you'll need a slightly more complex export workflow. Specifically, you will need to reduce the dimensions of your photo to a more reasonable height/width in pixels, I believe.

In the Export dialog from File > Export you can adjust the dimensions, and choose a resampling method. Then worry about the quality. For example:

image.png.d8ec453fe0bb235d7f52131f6d0a3264.png

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

Also keep in mind that JPEG compression is lossy, meaning even at 100% "quality" some details will be lost. (There is a non-lossy form of JPEG compression but it is rarely used & Affinity does not support it.)

What this means is not only do the pixel dimensions determine how much compression can be applied without noticeable artifacts appearing in the export, so does how much pixel-to-pixel detail there is in each image you export to the JPEG file format. (Technically, this kind of detail is high frequency image content.) Areas of solid color have essentially no high frequency content so they compress very well without adding compression artifacts but ones with lots of color variations (even ones not very noticeable to the eye) have lots of high frequency content so they do not.

A very common source of high frequency content in digital photographs is noise, which adds nothing to the sharpness or quality of the photo, but can easily go unnoticed unless the photo is examined carefully at high magnification levels. So among the other techniques for getting compact JPEG images without sacrificing too much useful detail, the ones demonstrated in the Affinity Photo - Export Compression Efficiency video tutorial are worth considering.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

  • 1 year later...

I know this topic is over a year old, but I have been having similar issues. I am an artist and take high res photos of my paintings. When I create smaller jpegs for website/social media I often have difficulty getting good jpegs. The compression makes them very soft/blurry that doesnt properly reflect the painted surface. It is a lower quality than when I used to save jpegs through photoshop. I've kind of settled on bicubic sampling to keep them as crisp as possible, but still not really happy with it. Any tips would be appreciated. I will watch the video link given above. Thx.

Link to comment
Share on other sites

Serif has "kinda" admitted the quality of Affinity JPEG export is not top notch. It is "kinda" recommended now to use additional software if top quality JPEGs are needed. For example, export from AP to full size TIFF and batch resample/sharpen/convert with XnConvert.

Link to comment
Share on other sites

1 hour ago, Fixx said:

Serif has "kinda" admitted the quality of Affinity JPEG export is not top notch.

As I remember it, what they have said is they use a lossy JPEG compression algorithm that is computationally efficient & therefore fast, but the tradeoff is its compression efficiency is not as good as some others. The result is that for any particular JPEG "Quality" setting, the exported file size will be larger than if they used a more efficient one.

As a workaround for that, I use ImageOptim, a free Mac app that offers a wide range of compression algorithms, a few of which are so extreme that it can take several minutes for them to compress a file to its smallest possible file size. 

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

  • 7 months later...

In May 2021 Google will be changing its SEO and SERP algorithms to favor websites that load the quickest. In order to prepare for this change, one can use this tool to get a feel for both mobile and desktop issues:

https://developers.google.com/speed/pagespeed/insights/

The results for all of the websites I manage yielded this:

"Serve images in next-gen formats: Image formats like JPEG 2000, JPEG XR, and WebP often provide better compression than PNG or JPEG, which means faster downloads and less data consumption."
 
I'd love it if Affinity could could incorporate these formats in to Photo. 
Link to comment
Share on other sites

The main problem seen in your images is the clouds. Jpeg compression does not cope well with areas of similar colour; it tends to produce banding.

I uploaded your .aphoto file and exported it as a .jpg file at 100%, 60% and at 15%, and at 15% with Lanczos resampling. The 100% and 60% show no obvious banding, but the 15% versions do. The file sizes are (in the same order) 33.2MB, 4.6MB, and 1.7MB.

The images below are the exported jpegs cropped to just show the cload area. It will display at 100% if you click on it twice.

At 100%:StonegateWoods100Crop.thumb.jpg.5814c5b29fec6729a18d401f76e6c22f.jpg

60%:

StonegateWoods60Crop.thumb.jpg.0553eafc8100c8274ea8ad0d78035224.jpg

15%:

StonegateWoods15Crop.thumb.jpg.93380545602d02b3b65c4298d2c42395.jpg

The 15% version with Lanczos sampling was not visibly different and was the same size.

My suggestion is that 1MB is too small for what you want, but around 4MB (60%)  would be OK.

John

 

StonegateWoods15LCrop.jpg

Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

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.