Forum

Author Topic: relinking photos  (Read 6687 times)

kiteman

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
relinking photos
« on: January 04, 2013, 07:16:24 PM »
In an old post, Asmordean writes as follows:
If you've saved the project file (It'll be a .PSZ file) you can open it with 7Zip, it's a ZIP file.

Look for the "doc.xml" file.  Open it up in a text editor like Notepad++ or Notepad2.  The line <location path="filename.jpg" /> is what you're after.  You might be able to edit it to <location path="\\networkpc\directory\filename.jpg" />, though I've not tried that (no network at home).

If there are a lot of photos, use Search & Replace. Search for:
<location path="
Replace with:
<location path="newdirectory

After you edit it just put it back into the ZIP file (replace the old one).

I wouldn't mind seeing a "Save with photos" option.  It would be a huge file for some things but would make the PSZ 100% portable.

I found this when I was toying with structured light.   I take one with the projection and a second with just white light.  I align the structured light photos then edit the doc.xml file to replace all the photos with the white light ones and build the texture so I don't get all colour noise as a texture.  Works quite well, as long as you don't bump anything.

kiteman

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: relinking photos
« Reply #1 on: January 04, 2013, 07:18:26 PM »
I tried to use this method, but PhotoScan, can not open the project changed with 7zip.

Can anyone advise me another solution?

Best regards
Stefano

Wishgranter

  • Hero Member
  • *****
  • Posts: 1202
    • View Profile
    • Museum of Historic Buildings
Re: relinking photos
« Reply #2 on: January 04, 2013, 07:30:44 PM »
install Winrar and use it, then rename back to PSZ.

But it should work just so that you place PSZ in folder where are the images....
----------------
www.mhb.sk

kiteman

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: relinking photos
« Reply #3 on: January 04, 2013, 07:38:13 PM »
many thanks

Infinite

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
Re: relinking photos
« Reply #4 on: January 08, 2013, 01:04:58 AM »
Thanks to much persuasion Agisoft now has a Change Path feature in Photos pane, right click. You can do this for 1 photo, all photos in chunk, or across Entire Workspace. Very useful for many things. It's in Pro, I think it should be in latest standard.
_______________________________________________
I N F I N I T E
www.ir-ltd.net

FoodMan

  • Sr. Member
  • ****
  • Posts: 477
    • View Profile
Re: relinking photos
« Reply #5 on: January 08, 2013, 09:25:56 AM »
is it only in pro...?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: relinking photos
« Reply #6 on: January 08, 2013, 01:40:25 PM »
Hello Foodman,

This feature will be available in the next update.
Best regards,
Alexey Pasumansky,
Agisoft LLC

FoodMan

  • Sr. Member
  • ****
  • Posts: 477
    • View Profile
Re: relinking photos
« Reply #7 on: January 08, 2013, 03:09:01 PM »
 8) 8)

cool, thanks Alexey .

f/