i want to import an image, modify it and then export the modified image.
Something like this:
img = Import["C:\\Images\\e4271-5.jpg"]
Some modifications happens.
StringTake[img,{21,27}]
cond=StringTake[img,7]
If[cond=="5",Export["C:\\Images\\e4271-55.jpg"],Export["C:\\Images\\e4271-11.jpg"]]
So i'll encounter two types of files, files with file names "name-1" and files with file names "name-5". I want mathematica to import the files, modify them and save them in the same folder with nearly the same name, only difference to the filename is that for the "name-1"-ones there is an extra "1" added to the file name. Resulting in "name-1" -> "name-11" and analoge "name-5" -> "name-55".
How do i do that? StringTake wont work because of the quotation marks with my string of interest.