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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

File Extension Error .jpg vs. .JPG

Wes_Tomer
13-Aquamarine

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.

ACCEPTED SOLUTION

Accepted Solutions
Wes_Tomer
13-Aquamarine
(To: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

View solution in original post

1 REPLY 1
Wes_Tomer
13-Aquamarine
(To: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

Announcements

Top Tags