I assume you want it works with any image, not only with rectangular boxes. The distortion you want is not perspective, you want Y scaling which depends linearly on X. Some programs allow it without having any plugins nor writing a script. The one I know is Affinity Photo. There you can use distortion with equations - you write a formula for coordinates from ...
The example you posted shows the image has no transparency. This can be seen in the layers panel. Adding a transparent layer underneath your image layer will not create any transparency. Save for Web won't fix it either. Instead, you need to add a mask to your drawing to mask out the white background to make it transparent.
There are several ways this could ...
For Gimp there is the ofn-trapeze-transform script/plugin. After installation check in Filters > Distorts The plugin is fairly slow since it processes the image line of pixels after lines of pixels.
Note that what you want distorts straight lines:
In fact this plugin has been written to demonstrate all the bad side effects of such a transform :)
Two ways, go to: View then select New Guide Layout and then add Columns and Rows as needed on the pop-up dialog.
Second option, you can follow this video for other options. https://www.youtube.com/watch?v=RY0dfjLUQHY
Separate the verticals.
What you are after is not perspective. In actual perspective what is closer to the viewer gets elongated, larger, as it moves away. What you've shown as "desired" is actually the opposite of this.
Separate the internal verticals so they are not part of the grid
Warp the horizontals
Use Pathfinder > ...
Stop using the wrong tool. Use Illustrator first.
Ask for a PDF file of that blueprint. If it is drawn correctly that file IS your template. Just remove the lines you do not actually need.
Define a scale and draw internally a rectangle where you want your raster image, your Ps file.
You can make a clipping mask and put all the lines inside. Now Export ...
It was probably a creative decision by the colorist, but lenses back then probably weren't crisp enough to avoid chromatic aberration, so it may add some authenticity to how the image would have looked had color film been available.
My personal preference:
In my photography, I avoid CA. In my 3D work, I add it in haha.
Quickest way to add it in Photoshop is ...
As an addendum to Billy's answer… also as a photographer who dislikes colour aberration on lenses, my go-to tool for this would be Adobe PhotoRAW [which actually works on any picture format Ps can open, jpg, png etc.
Here's a very quick before & after on a section of the first photo…
It's not perfect - of course you'd do better on the original - but the ...
This is speculation:
I think you'd really need to ask whoever was responsible for the recolouring, but the images may have already had chromatic aberration, even if they were originally black and white. Obviously it would not have been as obvious, and there would be no colours as such. But it's entirely possible the person doing the edit wanted to recolour ...
A quick look at the .psd source code reveals that text is stored like this.
So it needs just a bash script that performs a regex search across all files and writes the matches to a new file.
I'm for the most part designer – so no expert in this. But I think a good developer can do this reasonably ...