Step 1: Step 1: Setting up images for export.
So open up the PSD document containing your two tone image and turn off the visibility of the white background layer and the grey image layer.
Now you should be left with just the black image layer visible.
We need to save this image in a PNG format so we can preserve the transparent background so head on up to the menu bar File > Save As or (Shift + Ctrl + S) for the keyboard shortcut.
Give your image a name and change the Format by clicking on the drop down Format menu and selecting PNG. Leave all other default settings unchanged and hit Save.
To save the grey image layer just repeat the previous instructions.
Note: Ensure the black image layer’s visibility is switched off while saving your grey image layer. This is to ensure that you save just the grey layer instead of the black and grey layer together.
There is also no need to save the white background layer because we do not need it.