Jump to content

need help on matching profile pic to merge with the background

Teletha
Go to solution Solved by vanished,
7 minutes ago, RaW D Coy said:

i suck at math xD any chance you could whip up a formula example

If I'm correct, these will all be true: (though it is possible I've made a mistake somewhere OR that the user pic circle is not in fact proportional to resolution)

  • Distance in from the side = 1777 * [your X res] / 3840
  • Distance from the top = 738 * [your Y res] / 2160
  • Size of cutout = 288 * [your X res] / 3840

for 1080p, your X res = 1920 and Y res = 1080,

for 1440p, your X res = 2560 and Y res = 1440, etc.

 

Hope this helps :)

 

Another way to do it is just to do it in 4K, even if that's not your res.  Like I said, if the user pic circle is proportional to screen size, just use these numbers and everything will scale up or down to fit anyway.  Though it's possible that the circle is actually different apparent sizes on different resolutions.  Plus scaling could potentially affect it I suppose... o.O

7 minutes ago, Ryan_Vickers said:

If I'm correct, these will all be true:

  • Distance in from the side = 1777 * [your X res] / 3840
  • Distance from the top = 738 * [your Y res] / 2160
  • Size of cutout = 288 * [your X res] / 3840

for 1080p, your X res = 1920 and Y res = 1080,

for 1440p, your X res = 2560 and Y res = 1440, etc.

 

Hope this helps :)

so in my case with a 1440 screen and a 4k pic to calculate the side it would go:

1777*2560/3840= 1184.6666666666667?

 

 

 

 

 

AMD Ryzen 7950X3D [x2 360 Rad EKWB] | Asus Extreme x670E | RTX TUF 4090 OC@3GHz [EKWB Block] | Corsair HX1500i | G.Skill Neo CL30 6000MHz (2x32GB) | MP700 2TB Gen5 + 980/950 Pro 1TB M.2 | x6 85PRO 512GB | NAS 4x 18TB Seagate Exo Raid 10+Backblaze | Lian-Li o11D XL | Main Screen: Samsung OLED G9 | AUX: LG IPS7 27" (x2) LG CX 55" G-Sync | Copyright©1996-2024 Teletha All rights reserved. ®

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, RaW D Coy said:

so in my case with a 1440 screen and a 4k pic to calculate the side it would go:

1777*2560/3840= 1184.6666666666667?

 

 

 

 

 

yeah exactly.  Keep in mind that when I say "your res" I mean the resolution of the picture you will be setting as a background, but they should be one and the same.

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Ryan_Vickers said:

yeah exactly.  Keep in mind that when I say "your res" I mean the resolution of the picture you will be setting as a background, but they should be one and the same.

but 1184 isn't correct since i used 1777 as sides?

AMD Ryzen 7950X3D [x2 360 Rad EKWB] | Asus Extreme x670E | RTX TUF 4090 OC@3GHz [EKWB Block] | Corsair HX1500i | G.Skill Neo CL30 6000MHz (2x32GB) | MP700 2TB Gen5 + 980/950 Pro 1TB M.2 | x6 85PRO 512GB | NAS 4x 18TB Seagate Exo Raid 10+Backblaze | Lian-Li o11D XL | Main Screen: Samsung OLED G9 | AUX: LG IPS7 27" (x2) LG CX 55" G-Sync | Copyright©1996-2024 Teletha All rights reserved. ®

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, RaW D Coy said:

but 1184 isn't correct since i used 1777 as sides?

Well what was the resolution on the picture you were cutting from?  It must have been 4K, since the odds of a mistake in the math just happening to perfectly balance out some other mixup is incredibly low :P

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
Share on other sites

Link to post
Share on other sites

Alright! thanks for all the help!

AMD Ryzen 7950X3D [x2 360 Rad EKWB] | Asus Extreme x670E | RTX TUF 4090 OC@3GHz [EKWB Block] | Corsair HX1500i | G.Skill Neo CL30 6000MHz (2x32GB) | MP700 2TB Gen5 + 980/950 Pro 1TB M.2 | x6 85PRO 512GB | NAS 4x 18TB Seagate Exo Raid 10+Backblaze | Lian-Li o11D XL | Main Screen: Samsung OLED G9 | AUX: LG IPS7 27" (x2) LG CX 55" G-Sync | Copyright©1996-2024 Teletha All rights reserved. ®

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×