Hello Christian,
again, thanks for your kind reply.
Hi Michael,
I do not know much about LO, but I wrote the initial xml filter code
for graphics in OOo. Maybe LO has changed some or there is a bug.
But if it works for small documents it should work for large documents.
Are you really saving the presentation inside the directory with the
images? are all images inside that directory?
Hmm, not really there are lots of subfolders with contain again pictures.
Maybe try
- save presentation to image directory
- close presentation
- load presentation from image directory
- save presentation again
- close presentation
- move image directory
- open presentation from new image directory
- save to desired location
Unfortunately, it didn't work, maybe caused by the subfolders. And moving
pictures around would cause broken links.
If this still does not work, try to actually change the
document before each save step. F.e. insert a shape and delete
it befor pressing save/save as.
If all else fails, go to tools options / load&save and disable
xml size optimization. Then safe the document and extract content.xml.
Open with your prefered text editor, f.e. gedit, and search & replace
the old image path.
Yes, in the end I used the hard way :)
I posted commands below...
All in all this would make for a nice extension where one could batch
process multiple links.
Maybe, if problems occur again or when I have to modify more files :)
Regards,
Christian
Here is my solution (I hope it helps anybody)
(You need a linux PC to execute the commands):
#create folder to unpack and unpack
mkdir archive
unzip Presentation.odp -d archive/
cd archive
#reformat the file to get pretty output
xmllint --format content.xml --output content.xml
#analyze links (very helpful)
grep --color "href" content.xml
...
<draw:image xlink:href="../../../../abc/xyz/Pictures/picture.png"
xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad">
...
#replace parts of all the paths as necessary with your favourite editor e.g.
"../../../../abc/xyz/Pictures" to "../Pictures"
kate content.xml
#recreate the odp file
zip -r Presentation_edited.odp *
Move presentation and pictures folder to the appropriate folder, open LO and
enjoy.
Greetings
Michael
--
View this message in context:
http://nabble.documentfoundation.org/Moving-linked-pictures-in-Impress-from-one-directory-to-another-tp2916339p2929313.html
Sent from the Users mailing list archive at Nabble.com.
--
Unsubscribe instructions: E-mail to users+help@libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.