When copying the Image from the hard drive to the Mathematica notebook, what can I do to have the path of the Image?
I tried Imort[img] // Path
where img
is Image but it didn't work.
You can use the name to find the path, but not the image variable.
name = "image.png";
img = Import[name]
FindFile[name]
FindFile
finds the same file that Import
finds. If you have another image with the same name in a different directory, by changing to that directory (with SetDirectory
) Import
and FindFile
will find the second image.