Skip to main content
1-Visitor
August 19, 2019
Solved

File Extension Error .jpg vs. .JPG

  • August 19, 2019
  • 1 reply
  • 1048 views

I am iterating through images on a 3D image widget. With each step in a .pvz sequence I change an image accordingly. I noticed that capitalization of file extension can cause issues. In the Studio preview, it is fine, but after you export to an IOS device, anything image file that ends in .JPG instead of .jpg doesn't show up.

 

I think this is a glitch, since they should be treated the same -- but at least now I know what to avoid when generating images for my app.

Best answer by Wes_Tomer

I also found a quick fix. Create a text file with this in it:

 

ren *.JPG *.jpg

Then change the text file extension from .txt to .bat (such as rename.bat)

 

Put the bat file in your images folders

Documents\VuforiaStudio\Projects\***your project name here***\dist\app\resources\Uploaded and:

Documents\VuforiaStudio\Projects\***your project name here***\src\phone\resources\Uploaded

Then double click on the rename.bat file, and all your images will automatically be changed from xyz.JPG to xyz.jpg

1 reply

Wes_Tomer1-VisitorAuthorAnswer
1-Visitor
August 19, 2019

I also found a quick fix. Create a text file with this in it:

 

ren *.JPG *.jpg

Then change the text file extension from .txt to .bat (such as rename.bat)

 

Put the bat file in your images folders

Documents\VuforiaStudio\Projects\***your project name here***\dist\app\resources\Uploaded and:

Documents\VuforiaStudio\Projects\***your project name here***\src\phone\resources\Uploaded

Then double click on the rename.bat file, and all your images will automatically be changed from xyz.JPG to xyz.jpg