I need to "transform" a normal rectangle image into a "pizze slice". So this:
Must be stretched into this:
This way I lose the actual wording, so it's not 100% correct. I need it to not just mask those parts, but also "stretch" the slice so it will fit into the new triangle shape, so none of the text is lost.
My photoshopping skills are so limited, I can't even do a proper preview in photoshop that shows how it must be cut.
How would I do this using GD Image?
This should get the job done - the script is commented, so you should have no trouble understanding it.
Result: