View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016888||Scribus||Graphics / Image Frames||public||2023-01-10 10:39||2023-01-13 15:03|
|Summary||0016888: Image lost when Copy-paste inline image - Path modified in SLA|
|Description||When I copy an inline image in a text frame and paste it in this frame or another, the image disappear for each copy.|
|Steps To Reproduce||1 - Insert image in frame|
2 - Create an inline image in text (copy-paste image frome frame to text)
3 - Select the inline image + copy
4 - paste the inline image in the same text frame or another one
5 - Inline image disapear (at least in the text frame where pasted)
6 - Save and Reload the file -> all instance of this inline image disapear
|Additional Information||In the SLA code I noticed a change that occure each time I paste the inline image :|
- ItemID of FRAMEOBJECT of the inline image is changed. Reference InID is kept.
- The Path to the image change from relative to absolute. Changing it back to relative make it work!
working code of inline image :
<FRAMEOBJECT InID="22317" XPOS="0" YPOS="0" OwnPage="-1" ItemID="220454048" ... PFILE="2023-01-09 14_58_11-.png"...>
altered code of inline image :
<FRAMEOBJECT InID="22317" XPOS="0" YPOS="0" OwnPage="-1" ItemID="220624816" ... PFILE="C:/Pictures/autre/2023-01-09 14_58_11-.png" ...>
|Tags||No tags attached.|
||Maybe related to this one https://bugs.scribus.net/view.php?id=16661|
||Unable to reproduce here.|
Sorry, I was wrong on step 4. It is
4 - paste the inline image in another text frame
||No change here : unable to reproduce.|
||Gif in Attachement to see the process and results|
Ok, not sure why it failed in the gif but i found that if the image has a folder with a point inside its name the process fail.
It is my bad cause I wrongly anonymise my name in the path I post above:
Problematic Path :
PFILE="C:/User/NAME.SURNAME/Pictures/autre/2023-01-09 14_58_11-.png" ...>
Tried on another computer and I have random results where I sometimes get path o inline image mixed with the path of previously included image in another file...
Dot in the name is maybe not a problem.
If someone else could try and find why I get this strange behavior it would be interesting.
||The dot in the folder name is not the problem. I did some tests and cannot reproduce the problem either in this case.|
works on my linux system.
using forward slashes is normally ok, but i wonder if this
is a valid path for all three:
can you try to manually replace the / by \\ ?
"G:/Utilisateurs/name.surname/Pictures/test/2023-01-09 14_58_11-.png" is valid
"G:\\Utilisateurs\\name.surname\\Pictures\\test\\2023-01-09 14_58_11-.png" is valid too
But when I copy paste inline image it became altered.
- With sla in same folder than png it become "../../../../Pictures/test/2023-01-09 14_58_11-.png" instead of "2023-01-09 14_58_11-.png"
- With sla in another disk ( at C:/toto/scribus/) it become : "G:/Pictures/test/2023-01-09 14_58_11-.png"
In the end it work correctly outside of "G:/Utilisateurs/name.surname/" folder.
If I understood well the source code when I paste the inlane image, scribus try to generate a relative path.
This generated path is altered only if I work inside of windows "Users" folder (Utilisateurs for FR Windows)
|2023-01-10 10:39||zacl||New Issue|
|2023-01-10 16:31||zacl||Note Added: 0049870|
|2023-01-10 19:53||jghali||Note Added: 0049873|
|2023-01-10 20:10||zacl||Note Added: 0049874|
|2023-01-10 20:21||jghali||Note Added: 0049875|
|2023-01-11 10:40||zacl||Note Added: 0049876|
|2023-01-11 10:40||zacl||File Added: Animation2.gif|
|2023-01-11 17:20||zacl||Note Added: 0049878|
|2023-01-11 19:55||zacl||Note Added: 0049880|
|2023-01-11 20:30||jghali||Note Added: 0049882|
|2023-01-12 07:56||ale||Additional Information Updated|
|2023-01-12 08:05||ale||Note Added: 0049885|
|2023-01-13 14:34||zacl||Note Added: 0049899|
|2023-01-13 15:03||zacl||Note Added: 0049900|