cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

File Extension Error .jpg vs. .JPG

SOLVED
Wes_Tomer
Amethyst

File Extension Error .jpg vs. .JPG

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.

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: File Extension Error .jpg vs. .JPG

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

View solution in original post

1 REPLY 1

Re: File Extension Error .jpg vs. .JPG

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

View solution in original post

Announcements
Join an
AR Working Group!

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection