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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Unsupport file for Prime 7.0.0.0 due to a corrupted photo extension

David_Law
3-Newcomer

Unsupport file for Prime 7.0.0.0 due to a corrupted photo extension

Untitled.jpg

 

I mistakenly attached a photo with a wrong extension to my MathCAD file. 

Now, it's not opening 

the wrong extension is .1 instead of .jpg

 

The version is Prime 7.0.0.0

 

I will appreciate a lot if you could help me recover the file even if it will be just the texts and equations!

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:David_Law)

I finally succeeded. Here is the fixed file.

At least I could open it with Prime10 (don't have P7 installed).

EDIT: As I have P6 installed and there is a trick to easily convert a P7 sheet into P6 format I did so and was able to open the converted sheet in Prime 6. So I guess you should not have any troubles opening the file in P7. It probably would not be necessary but for whatever it may be worth I also attach the Prime 6 version.

 

I think you have learned that making backups on a regular basis is boring and time consuming but it could be a real life saver 😉
Especially when you are using a software like Prime which does not has support for autosaving backup copies.

 

EDIT: In case somebody is interested. To fix the worksheet only one small modification is necessary. Because we see in the "media" directory that the file "Image891.1" has a wrong extension "1", we have to look for "region-id="891" in the file "worksheet.xml" and there we have to replace the wrong file type "1" (see picture) by "png" .

Werner_E_0-1726749256647.png

Thats all thats needed. At the end all seems to be that easy 🙂

It would not have been necessary, but I additionally changed the extension of the file "Image891" in the "media" subdir to "png" and also edited the file "worksheet.xml.rels" to reflect that change in file name.

I could bang my head as when I first played around with the file I did exactly what I just described but when I rezipped the directory of files I always accidentally created a nested archive and so an invalid Prime file (Primes error message is not very helpful, indeed).

 

Its a shame that the act of embedding a picture with a wrong file extension makes a file completely unusable - not very professional software design. I tend to call it a bug which should be fixed by PTC.

 

View solution in original post

4 REPLIES 4
StuartBruff
23-Emerald III
(To:David_Law)

Is the .1 extension by any chance indicative of a CREO file? If so, it might be worth asking to see if anybody can read it in its native application. Can you install Mathcad Prime 10 and see if the MP10 can open the file?

Werner_E
25-Diamond I
(To:David_Law)

The file with the wrong extension was "Image891.1" and it should have been "Image891.png".

Unfortunately I was not able to bring the sheet to live.

An mcdx file actually is just a renamed zip file. So if you rename it to *.zip you can unzip it and inspect its contents.

That way it was easy to extract the pictures. I attach them here in a zipped archive, the wrong extension is already fixed.

Hopefully someone else can deal with the sheet itself.

 

@StuartBruff 

No, P10 can't open the file. I was hoping that @LucMeekes  would be able to revive the sheet 😉

 

Werner_E
25-Diamond I
(To:David_Law)

I finally succeeded. Here is the fixed file.

At least I could open it with Prime10 (don't have P7 installed).

EDIT: As I have P6 installed and there is a trick to easily convert a P7 sheet into P6 format I did so and was able to open the converted sheet in Prime 6. So I guess you should not have any troubles opening the file in P7. It probably would not be necessary but for whatever it may be worth I also attach the Prime 6 version.

 

I think you have learned that making backups on a regular basis is boring and time consuming but it could be a real life saver 😉
Especially when you are using a software like Prime which does not has support for autosaving backup copies.

 

EDIT: In case somebody is interested. To fix the worksheet only one small modification is necessary. Because we see in the "media" directory that the file "Image891.1" has a wrong extension "1", we have to look for "region-id="891" in the file "worksheet.xml" and there we have to replace the wrong file type "1" (see picture) by "png" .

Werner_E_0-1726749256647.png

Thats all thats needed. At the end all seems to be that easy 🙂

It would not have been necessary, but I additionally changed the extension of the file "Image891" in the "media" subdir to "png" and also edited the file "worksheet.xml.rels" to reflect that change in file name.

I could bang my head as when I first played around with the file I did exactly what I just described but when I rezipped the directory of files I always accidentally created a nested archive and so an invalid Prime file (Primes error message is not very helpful, indeed).

 

Its a shame that the act of embedding a picture with a wrong file extension makes a file completely unusable - not very professional software design. I tend to call it a bug which should be fixed by PTC.

 

MAAAAN, YOU JUST LITERALLY SAVED MY LIFE! 

 

 

THANK YOU SO MUCH! 

 

I truly appreciate that a lot! I wish if I could you a coffee or a little gift for this life saving! 

 

Announcements

Top Tags