Donovan Posted January 26, 2019 Posted January 26, 2019 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 Quote
walt.farrell Posted January 26, 2019 Posted January 26, 2019 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. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1
Donovan Posted January 26, 2019 Author Posted January 26, 2019 Thank you. I do appreciate your help. I attach the file. However, I am finding that with many files, I have the same compression issues. _DSF9718StonegateWoods.afphoto Quote
Donovan Posted January 26, 2019 Author Posted January 26, 2019 Ive attached the RAW file too, if that might help. I used the Overlay Paint tool on the sky to darken it. Jason _DSF9718.RAF Quote
walt.farrell Posted January 26, 2019 Posted January 26, 2019 Thanks, Donovan. Next questions: What size (pixel dimensions) are you trying to export it. You're currently 6032px x 4032px, which is 24.32 megapixels. 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). Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1
Donovan Posted January 26, 2019 Author Posted January 26, 2019 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. Quote
Donovan Posted January 26, 2019 Author Posted January 26, 2019 I amended the brightness in Persona, only because I realised it was still too bright after RAW editing Quote
walt.farrell Posted January 26, 2019 Posted January 26, 2019 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: Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.3, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1
Donovan Posted January 26, 2019 Author Posted January 26, 2019 Thank you Walt - that is exactly what I needed to help me get through this problem. Much appreciated. walt.farrell 1 Quote
R C-R Posted January 27, 2019 Posted January 27, 2019 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. Donovan and walt.farrell 1 1 Quote All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
Donovan Posted January 27, 2019 Author Posted January 27, 2019 Thank you for your additional content. I'll be watching the video. Jason Quote
Terri D Posted May 13, 2020 Posted May 13, 2020 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. Quote
Fixx Posted May 14, 2020 Posted May 14, 2020 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. Quote
R C-R Posted May 14, 2020 Posted May 14, 2020 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. Quote All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
appearsharmless Posted May 14, 2020 Posted May 14, 2020 Just wanted to add a +1 for ImageOptim. I know turning to a third-party app is an aggravating workaround, but every time I use ImageOptim I think: "Whoa... I can't believe this thing is free." ModalNode 1 Quote iMac (Retina 5K, 27-inch, 2019)| MacOS (Probably latest stable build) Affinity Designer|Affinity Photo|Affinity Publisher
ModalNode Posted January 11, 2021 Posted January 11, 2021 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. Quote
John Rostron Posted January 12, 2021 Posted January 12, 2021 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%: 60%: 15%: 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 Quote Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050
nehakakar Posted October 19, 2024 Posted October 19, 2024 For high-quality JPEG compression without compromising the image, you can try using an external tool like JPEG Compressor. It allows you to compress unlimited images without losing quality, making it ideal for sharing smaller files that still look sharp. Quote
Recommended Posts
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.