One method is to use the original image/layer as its own layer mask. You'd create a duplicate of the layer, desaturate and invert it, pasting the greyscale result into the original layers layermask.
Update: Here are some step by step instructions:
Start with your flattened image:
Add a Saturation/Hue adjustment layer and turn down the Saturation until the ...
You can use blending to add transparency:
Right click the layer you want to add transparency to, pick the "Blending Options..." (If unable to pick 'Blending options' ensure that the layer is unlocked)
Locate the scale under the "This layer:" that is under the "Blend if" box
Press and hold the alt key while dragging on the white knob, the further you drag it ...
Select the Pen tool.
Ensure the Pen tool's dropdown menu in the Options bar is set to "Path".
Click the Shape button in the Options bar, found to the right of the Pen tool dropdown menu.
Press that and presto :p
Ensure your document is 8-bit RGB. (Image > Mode)
If that doesn't help, hold down the Option/alt key and choose File > Save as... this will save a copy and remove any non-png allowed formatting.
Chances are there's simply something about the image which is not allowed in the PNG format. However, using File > Save for Web should allow PNG saving in ...
First you'll want to desaturate the image (CMD+SHIFT+U), this removes any color and makes it easier to achieve pure white.
With your file open, choose Image->Adjustments->Levels. You'll get this:
Now bring the two outer triangles in like this (you'll need to play around with this until you get something you like):
You should end up with this!
Just choose Object > Artboards > Fit to Artwork. That will make the artboard fit precisely to the edge of all the artwork, including the background square.
There is no command to scale artwork to match the artboard.
I came up with a nice method for cleaning up pictures like this, and it works even when the background or lighting is uneven (that is, far worse cases than the example in this question) and it retains the colour.
My instructions are based on the Gimp, but it would be very similar in other programs like Photoshop.
EDIT: Gimp has a filter called "Difference ...
To type Arabic or Hebrew in Photoshop, you need to enable the Middle Eastern text engine. You can do this by going to Preferences > Type. Check out this video: How to access Arabic and Hebrew features in Photoshop CS6
THIS HAS BEEN UPDATED IN VERSION 23.0.1 You have to turn OFF "snap to grid" behavior. The preferences for alignment of objects are in three DIFFERENT places:
In VIEW menu uncheck "Snap to Point" (NOTE: this has moved in latest version to Preferences menu (see #3 below)
In the TRANSFORM PALETTE un-check "Align to Pixel Grid"
Other related options in ...
Adobe changed the Delete/Backspace key functionality in Photoshop CS6 when you press the Delete/Backspace key on a locked Background layer.
Since pressing the Delete/Backspace key on a locked background layer merely filled the selection with the background color, Adobe changed the functionality to provide more options when hitting the key. By bringing up ...
Transform Each 2.1 script
For preservation, here's the code:
[KAM] Transform Each 2.1.jsx:
You can't use effects or brushes with entire rectangles. Simply create one side, then draw the other three sides of a rectangle.
Create the triangles easily by drawing a path and choosing Effect > Distort & Transform > Zig Zag
Choose Object > Expand Appearance
Grab the Pen Tool and draw the other three sides of a rectangle.
To make things easy for yourself when editing later, it pays off to do a bit more work upfront by using the Appearance panel for this.
Draw a shape
Give it any fill and no stroke
Open the Appearance panel
Select your shape with the Move tool (V)
Choose Add New Stroke, either through Appearance panel options
or with the icon bottom leftmost on the panel
Ramp the contrast up with curves.
Select your image and press Ctrl-M. This will bring up the curves dialog.
Move the top point left and the bottom point right until your image becomes black and white. (that rhymes!)
You have different types of interpolation for resize. The thing to know is photoshop, for non smart objects also use a default interpolation (Bicubic), but different as the smart object one (Bicubic automatic).
The only thing you have to do is to go to :
Edit > Preferences > General > Image Interpolation and select "Bilinear (best for smooth gradients)". ...
From the menu, choose Object > Transform > Shear or Right Mouse Button/Control-Click (Mac) and choose Transform > Shear. That Should do the trick.
You could also go to the Transform Panel in the top right of your screen (Or Window > Transform), like you can see in the following screenshot:
select all the lines to be trimmed and the shape
grab the Shape Builder Tool, and Alt+Drag from A to B with it
repeat on other places as necessary
on more complex shapes, where Alt+Dragging in a straight line is not possible, you can Alt+Click on individual lines to delete one by one.
The below was done in Illustrator but could be done in Photoshop.
First create your object. For the demonstration I am using a linear gradient. You can mess around with a gradient mesh for more complex shapes. I set the right side to have the color and the left to 0% opacity.
Select your gradient and go to Effect - Texture - Grain
Mess around with the ...
Smart guides aren't smart
They are but do not work so good with grids because the pixel grid moves the object on the previous or next pixel/point.
Disable the "align to pixel" and "align to point" and continue working with smart guides.
EDIT: Example (50x50px workspace)
In Illustrator 2019, the snap-to-pixel toggle has been moved to a more convenient location in the top right of the application. It is the magnet icon connected to three vertical squares.
Clicking it toggles snap-to-pixel and the dropdown arrow to its right opens an advanced options menu with additional settings.