Jump to content

Recommended Posts

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

John

Edited by John Rostron
Re-imported Macro Library

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

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

Link to post
Share on other sites
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.

Affinity Photo 1.9.3, Affinity Designer 1.9.3, Affinity Publisher 1.9.3;  2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.92.236 & Affinity Designer 1.9.2 (showing 1.9.9) for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 14.4 (18D52)

Link to post
Share on other sites
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.

---@ELBeavers

Link to post
Share on other sites
  • 4 weeks later...

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

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

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

Link to post
Share on other sites
  • 5 weeks later...
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!!!!!!

Link to post
Share on other sites
  • 8 months later...
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.

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1065 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1065 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites
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

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

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

Link to post
Share on other sites
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.

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1065 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1065 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites

@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

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

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

Link to post
Share on other sites
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

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

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

Link to post
Share on other sites
  • 2 months later...
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?

Link to post
Share on other sites

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

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

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

Link to post
Share on other sites
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:

 

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1065 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1065 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
Share on other sites
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.

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo 1.9.2.1035 and 1.9.4.1065 Beta   / Affinity Designer 1.9.2.1035 and 1.9.4.1065 Beta  / Affinity Publisher 1.9.2.1035 and 1.9.2.1024 Beta

Link to post
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

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.