okies, Im trying utilise 'mogrify' which is a part of the ImageMagick sweet with one of my scripts to take 'images' that are uploaded via a form and change their format, size , resolution / quality etc.
I have no problems in doing this, what i do have hassles with is that the created 'file' has the exact same filename, except it has a different extension. because of this, i need to find a way to remove extensions from supplied $text variables.. And because i wish the flexibility of allowing people to upload files such as 'wide.image.long.name.tif' I need something that removes all the last characters after the final period (.)
so that it would work on both the above long name or something like wideimage.jpeg aswell.
thus in removing the extension i can just add a . ".jpeg" and will then be able to read the newly created file...