Rename images

Hello, 

Can you give me the procedure to change a label of the images taken by my camรฉra?

Right now the name is something like App_Images/2.IMAGE.122524.jpg.

I would like that it could name it like my ID column.

Thank youu

Dan

0 5 288
5 REPLIES 5


@danijara85 wrote:

would like that it could name it like my ID column.


Could you elaborate?

Here is a tip for creating user friendly image names that you may want to take a look at/ consider as a workaround.

More-User-Friendly-Image-names-for-images-uploaded-through-app/m-p/363657 

 

I'm looking for something easier than this. For example, my ID Column shows the numbers ID like: 3 or 300 or 1308. And its consecuent image will be named: 

- App_Images/3.IMAGE.111828.jpg ......(for the 3 ID number), 

- App_Images/300.IMAGE.195528.jpg ....(for the 300 ID number), 

- App_Images/1308.IMAGE.180844.jpg (for the 1308 ID number), 

My question is:

COULD it be possible only to name this image :

App_Images/3.jpg INSTEAD OF App_Images/3.IMAGE.111828.jpg

App_Images/300.jpg INSTEAD OF App_Images/300.IMAGE.195528.jpg

App_Images/1308.jpg INSTEAD OF App_Images/1308.IMAGE.180844.jpg

Thank you very much.

Dan

Not possible.

If not, could you give me the code using Powershell to delete this characters once in a folder? 

I was thinking something like:

get-childitem *.jpg | foreach { rename-item $_ $_.Name.Replace(".IMAGE.*******", "") }

BUT IT DOESN'T SEEM TO WORK = (

I know nothing of PowerShell.

Top Labels in this Space