![]() |
Powershell Script / Convert .bmp to .jpg in the Freelancer Folder - Printable Version +- Discovery Gaming Community (https://discoverygc.com/forums) +-- Forum: Welcome (https://discoverygc.com/forums/forumdisplay.php?fid=399) +--- Forum: Help & Support (https://discoverygc.com/forums/forumdisplay.php?fid=26) +---- Forum: Tutorials & Tools (https://discoverygc.com/forums/forumdisplay.php?fid=178) +----- Forum: Community Technical Guides (https://discoverygc.com/forums/forumdisplay.php?fid=745) +----- Thread: Powershell Script / Convert .bmp to .jpg in the Freelancer Folder (/showthread.php?tid=205047) |
Powershell Script / Convert .bmp to .jpg in the Freelancer Folder - Major. - 10-08-2024 Hello guys, as we all face the same issue with the .bmp format once we get a screenshot in Freelancer, I wrote a small PowerShell script that will do the following: - It looks into your FreelancerShots Folder - It will "take" all your .bmp pictures and convert them into .jpg - Once it did the converting, it will delete all the .bmp files. BMP to JPG Code: # Here you have to enter the folder path, so it looks like this: $Path = "C:\Users\Major\Pictures\FreelancerShots" BMP to PNG Code: # Here you have to enter the folder path, so it looks like this: $Path = "C:\Users\Major\Pictures\FreelancerShots" - Copy the code into the Powershell Ise and edit the $Path = "Put your FreelancerShots Folder path in here" - Once that is done, mark the code and press F8. (Depending on your Windows policy, you have to do it with F8 because it's non signed code, if you have set your Set-ExecutionPolicy Unrestricted you can just do it via run script. F5) - Check your FreelancerShots folder and .bmp should be gone and everything else became .jpg Just make a copy of the old folder and test my PS script and see if it works. If you need help, send me a forum PM or a discord message - major. RE: Powershell Script / Convert .bmp to .jpg in the Freelancer Folder - Petitioner - 10-08-2024 Would changing the ConvertTo-Jpg bit to ConvertTo-Png work/be recognized by powershell? I don't mess around with powershell too much, but I find my screenshots are less blurry and have less washing-out of colors when they are pngs. RE: Powershell Script / Convert .bmp to .jpg in the Freelancer Folder - Major. - 10-09-2024 (10-08-2024, 11:54 PM)Petitioner Wrote: Would changing the ConvertTo-Jpg bit to ConvertTo-Png work/be recognized by powershell? I don't mess around with powershell too much, but I find my screenshots are less blurry and have less washing-out of colors when they are pngs. I will give you the version for .png tomorrow, you have to edit like 3 lines to make it work. But kinda hard on a phone ![]() Edit: Check your Discord PM RE: Powershell Script / Convert .bmp to .jpg in the Freelancer Folder - Tenshi Kuonji - 10-09-2024 I am not fully sure if this could work but try check this one ... Code: # Enter the folder path I will be testing it when i get home but i did some small tweaks and writtings to the code of Major as i can code on tablet (Android), hope it works, if not i will look for a fix of it RE: Powershell Script / Convert .bmp to .jpg in the Freelancer Folder - Major. - 10-09-2024 Added the code for .bmp to .png in my first post. Enjoy. |