John Rostron Posted March 1, 2020 Share Posted March 1, 2020 I have put together a set of macros to change the dpi of an image without changing the pixel dimensions. The set comprises macros to change the dpi to 72, 96, 144, 150, 180, 192, 300 and 400dpi. These macros were recorded in Photo 1.6 because there were reports that similar macros recorded in 1.7 would always resample, even if the Resample box was unticked. I have checked that these macros work in 1.8, which they do. I also note that in 1.8 the Resize function will change the dpi without resampling. Here is the Library file: Change DPI 1.6.afmacros Thanks to @carl123 for setting the ball rolling with his macro here. EDIT: This macro library has been recreated (in 1.6) and re-imported into this message. EDIT: I have now re-recorded them in Photo 1.10, but they still do not work! John Arini R, unpro, Hilltop and 5 others 3 5 Quote 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 More sharing options...
R C-R Posted March 1, 2020 Share Posted March 1, 2020 16 minutes ago, John Rostron said: I also note that in 1.8 the Resize function will change the dpi without resampling. That is good to know but your macros will still be very useful for batch processing, so thank you very much for posting them. John Rostron 1 Quote 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 More sharing options...
Hilltop Posted March 1, 2020 Share Posted March 1, 2020 2 hours ago, John Rostron said: I have put together a set of macros to change the dpi of an image without changing the pixel dimensions. The set comprises macros to change the dpi to 72, 96, 144, 180, 192, 300 and 400dpi. Very useful. Thank you for sharing these! John Rostron 1 Quote Link to comment Share on other sites More sharing options...
ELBeavers Posted March 2, 2020 Share Posted March 2, 2020 On 3/1/2020 at 4:05 AM, John Rostron said: I have put together a set of macros to change the dpi of an image without changing the pixel dimensions. This did the trick! Thanks for taking the time to create these in an older version of AP sans bug. I had created the same macro in 1.8.1 and it didn't work for me. I still have to use Automator to resize to the longest side correctly before running your DPI macro. I hope this regression gets worked out in the next bugfix. Quote ---@ELBeavers Link to comment Share on other sites More sharing options...
John Rostron Posted March 25, 2020 Author Share Posted March 25, 2020 Update. In a recent post, @chaletart was attempting to change the DPI of his document to values greater than 400. I have updated my Change DPI macro library to include higher values.I now includes 600, 800, 1000, 2000 and 4000. Change DPI 1.6.afmacros Edit: Ihis now points to a macro library created entirely in Affinity Photo 1.6, but has been tested in 1.8.5. John iDoc 1 Quote 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 More sharing options...
Ryn W. Posted April 24, 2020 Share Posted April 24, 2020 On 3/1/2020 at 4:05 AM, John Rostron said: I have put together a set of macros to change the dpi of an image without changing the pixel dimensions. The set comprises macros to change the dpi to 72, 96, 144, 180, 192, 300 and 400dpi. These macros were recorded in Photo 1.6 because there were reports that similar macros recorded in 1.7 would always resample, even if the Resample box was unticked. I have checked that these macros work in 1.8, which they do. I also note that in 1.8 the Resize function will change the dpi without resampling. Here is the Library file: Change DPI.afmacros Thanks to @carl123 for setting the ball rolling with his macro here. John THANK YOU SO MUCH!!!!! You're a life saver!!!!!! Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted December 29, 2020 Share Posted December 29, 2020 On 3/1/2020 at 4:05 AM, John Rostron said: These macros were recorded in Photo 1.6 because there were reports that similar macros recorded in 1.7 would always resample, even if the Resample box was unticked. I have checked that these macros work in 1.8, which they do. I also note that in 1.8 the Resize function will change the dpi without resampling. I'm not sure what you mean by your comment about 1.8, John. The bug that prevents newly recorded macros from simply changing the dpi without resampling has not been fixed, in my recent testing, and still occurs even in the 1.9 beta. John Rostron 1 Quote -- 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 More sharing options...
John Rostron Posted December 29, 2020 Author Share Posted December 29, 2020 2 hours ago, walt.farrell said: I'm not sure what you mean by your comment about 1.8, John. The bug that prevents newly recorded macros from simply changing the dpi without resampling has not been fixed, in my recent testing, and still occurs even in the 1.9 beta. Thanks for the information. I shall look again. If necessary, I shall have to unearth my old copy of Photo 1.6 and re-record. John Quote 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 More sharing options...
walt.farrell Posted December 29, 2020 Share Posted December 29, 2020 29 minutes ago, John Rostron said: Thanks for the information. I shall look again. If necessary, I shall have to unearth my old copy of Photo 1.6 and re-record. You're welcome. The one for 300 dpi works, but I did not check the others. If some were recorded using 1.6 and some using 1.7 or 1.8 then some may be broken. John Rostron 1 Quote -- 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 More sharing options...
John Rostron Posted December 30, 2020 Author Share Posted December 30, 2020 @walt.farrell, @R C-R, @Ryn W., @ELBeavers, @Hilltop, @Larry J . I have dusted down my copy of Affinity Photo 1.6 and re-created all of my Change DPI macros. I have tested them all in Photo 1.8.5 and they all work. The links in the messages above now point to the updated macro library, but here it is again.: Change DPI 1.6.afmacros John walt.farrell 1 Quote 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 More sharing options...
Hilltop Posted December 30, 2020 Share Posted December 30, 2020 Thanks, but I'm not really clear. Is this the old set, as it mentions version 1.6, or is it the new set and should it say 1.8? Quote Link to comment Share on other sites More sharing options...
John Rostron Posted December 30, 2020 Author Share Posted December 30, 2020 13 minutes ago, Hilltop said: Thanks, but I'm not really clear. Is this the old set, as it mentions version 1.6, or is it the new set and should it say 1.8? @Hilltop , The macro steps are exactly the same as before. I use the suffix 1.6 to indicate that they were all recorded using Photo 1.6. I think that in the earlier version, some of the later macros (over 400dpi) were recorded under 1.8. They work in Photo 1.8. John Quote 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 More sharing options...
Hilltop Posted December 30, 2020 Share Posted December 30, 2020 Clear. Thank you. John Rostron 1 Quote Link to comment Share on other sites More sharing options...
Kabeljauws Posted March 16, 2021 Share Posted March 16, 2021 On 12/30/2020 at 4:13 PM, John Rostron said: @walt.farrell, @R C-R, @Ryn W., @ELBeavers, @Hilltop, @Larry J . I have dusted down my copy of Affinity Photo 1.6 and re-created all of my Change DPI macros. I have tested them all in Photo 1.8.5 and they all work. The links in the messages above now point to the updated macro library, but here it is again.: Change DPI 1.6.afmacros 949 B · 23 downloads John It works also in 1.9.1! Thank you! Do I put the downloaded macros in some folder? I just imported them from the desktop where I put them after downloading. Does the macro disappear from AP when I put it somewhere else. e.g. bin? Quote Link to comment Share on other sites More sharing options...
John Rostron Posted March 16, 2021 Author Share Posted March 16, 2021 As far as I can tell, once you have imported the macros library file then Photo will remember it. I don't know if it simply remembers where it found it or if it makes acopy for itself. John Quote 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 More sharing options...
walt.farrell Posted March 16, 2021 Share Posted March 16, 2021 13 minutes ago, John Rostron said: As far as I can tell, once you have imported the macros library file then Photo will remember it. I don't know if it simply remembers where it found it or if it makes acopy for itself. Macros imported into the Library end up in the macros.propcol file in your user directory. For more information on that directory: John Rostron and Kabeljauws 2 Quote -- 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 More sharing options...
PaulEC Posted March 16, 2021 Share Posted March 16, 2021 Thanks for these, very useful. Quote Acer XC-895 : Core i5-10400 Hexa-core 2.90 GHz : 32GB RAM : Intel UHD Graphics 630 : Windows 10 Home Affinity Publisher 2 : Affinity Photo 2 : Affinity Designer 2 : (latest release versions) on desktop and iPad Link to comment Share on other sites More sharing options...
walt.farrell Posted March 16, 2021 Share Posted March 16, 2021 2 minutes ago, PaulEC said: - FYI: At the bottom of your post you should see a pulldown/link labeled Options. One of the options available to you should be "Hide". That will make the post invisible to everyone but Moderators. PaulEC 1 Quote -- 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 More sharing options...
John Rostron Posted September 15, 2021 Author Share Posted September 15, 2021 I have re-created these macros in Photo 1.10 and they work for me without error. Here is the link. John Quote 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 More sharing options...
PaulEC Posted September 15, 2021 Share Posted September 15, 2021 Thanks for these John. I just tried them, but they seem to distort the image to a specific ratio, am I missing something? John Rostron 1 Quote Acer XC-895 : Core i5-10400 Hexa-core 2.90 GHz : 32GB RAM : Intel UHD Graphics 630 : Windows 10 Home Affinity Publisher 2 : Affinity Photo 2 : Affinity Designer 2 : (latest release versions) on desktop and iPad Link to comment Share on other sites More sharing options...
John Rostron Posted September 15, 2021 Author Share Posted September 15, 2021 38 minutes ago, PaulEC said: Thanks for these John. I just tried them, but they seem to distort the image to a specific ratio, am I missing something? This is what I noticed in some when recording. I re-recorded each that misbehaved and it then worked OK for me. I shall re-examine them (again!) John Quote 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 More sharing options...
Twolane Posted September 15, 2021 Share Posted September 15, 2021 I'm in the process of turning some of my ebooks into print books that will be available for POD on Amazon and Ingram Spark. Many of my ebook covers are at 72dpi, thus I find I need higher dpi images for print cover output. Will your macros convert those 72dpi images into 300dpi for a print book cover? Quote Link to comment Share on other sites More sharing options...
John Rostron Posted September 16, 2021 Author Share Posted September 16, 2021 21 hours ago, Twolane said: I'm in the process of turning some of my ebooks into print books that will be available for POD on Amazon and Ingram Spark. Many of my ebook covers are at 72dpi, thus I find I need higher dpi images for print cover output. Will your macros convert those 72dpi images into 300dpi for a print book cover? @Twolane the macro simply sets the dpi flag in the metadata. It does not alter the image size, so a 1200px by 1600px image remains so. I suspect that you really need to increase the image size (pixel count). What is the current image size? John Quote 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 More sharing options...
John Rostron Posted September 16, 2021 Author Share Posted September 16, 2021 On 9/15/2021 at 11:24 AM, John Rostron said: This is what I noticed in some when recording. I re-recorded each that misbehaved and it then worked OK for me. I shall re-examine them (again!) John These macros recorded in 1.10 do not work. They change the pixel count in various ways. I have withdrawn that macro 1.10 package. John walt.farrell 1 Quote 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 More sharing options...
Twolane Posted September 16, 2021 Share Posted September 16, 2021 5 hours ago, John Rostron said: the macro simply sets the dpi flag in the metadata. It does not alter the image size, so a 1200px by 1600px image remains so. I suspect that you really need to increase the image size (pixel count). What is the current image size? It's not a big deal. I was hoping that I could just re-create the original 72dpi cover and do a back cover makeover for the print version, but it doesn't look to be possible. I was hoping for a shortcut, but I'm going to have to do the work. Like I said, no big deal. I've already done three, and I'm gaining valuable experience. I'm not sure why I thought I could magically turn 72dpi into 300dpi anyway. I should know better by now. John Rostron 1 Quote Link to comment Share on other sites More sharing options...
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.