Cannot import more jpg or png in a single svg

Post questions on how to use or achieve an effect in Inkscape.
Mikscaper
Posts: 1
Joined: Wed Oct 22, 2014 4:27 am

Cannot import more jpg or png in a single svg

Postby Mikscaper » Wed Oct 22, 2014 4:43 am

Hi,

I'm starting with inkscape. I must use it in my job and I have a problem with the import of new png or jpg in my svg.

My project include several jpg and png (about 40 for the moment, and it's not finished...), all my pictures are linked, but I cannot add image anymore: when I copy paste an existing image, or try to make a new clone, I have an error message "linked image not found". If I try to add a new image by import it, I have the same message if I want to link it, and have another error message if I want to incorporate it...

Someone knows if there is a limited number of picture in a single svg or maybe it a matter of memory ?...

Someone can help me?

PS: sorry for my english I am French...

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Cannot import more jpg or png in a single svg

Postby brynn » Wed Oct 22, 2014 9:53 pm

Here's some info about the "Linked Image Not Found" error message/image at the bottom of this FAQ: http://forum.inkscapecommunity.com/inde ... ;article=5.

I'm not clear exactly what's happening. If you've moved or deleted an image (from your computer) that you imported into Inkscape, the image will still show up in your document, as long as you have it open. (Once you close it, the next time you open it, that error message will appear in it's place.)

If the file is still open, from the time you imported the image, even though you've moved or deleted the import, the image would still be visible in the document. So you would still be able to copy it. But when you try to paste, I guess Inkscape is looking for it, in the place where it was when you imported, and can't find it anymore. Same thing with clone. So that's where the "linked image not found" error image is coming from. (edit - I'm guessing)

I don't understand this sentence:

If I try to add a new image by import it, I have the same message if I want to link it, and have another error message if I want to incorporate it...


Is there a 2nd error message? What is it? Or are you talking about the dialog that asks if you want to link or embed?

Are you saying that you see "linked image not found" when you try to import an image for the first time? Could you explain this part a little more?

As far as I know, there is no limit to the number of images that can be imported and linked. If you were embedding all those images, you would quickly come to challenge the RAM (memory) of your computer. In that case, Inkscape would either freeze and/or crash. But for linking, I'm not sure if memory is challenged. Maybe someone else will know?

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Cannot import more jpg or png in a single svg

Postby tylerdurden » Wed Oct 22, 2014 10:36 pm

brynn wrote:If you were embedding all those images, you would quickly come to challenge the RAM (memory) of your computer. In that case, Inkscape would either freeze and/or crash. But for linking, I'm not sure if memory is challenged. Maybe someone else will know?

Linking images also increases memory load, but not as much as embedding.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Cannot import more jpg or png in a single svg

Postby Lazur » Wed Oct 22, 2014 10:42 pm

I think it is a matter of memory.
Had been through similar, and that svg crashed inkscape several times and then I ended up using gimp instead.
I suggest to try the pre 0.91 release, it is said that it can use the available resources much better.

Adgenodux
Posts: 3
Joined: Sun Dec 28, 2014 11:13 pm

Re: Cannot import more jpg or png in a single svg

Postby Adgenodux » Sun Dec 28, 2014 11:55 pm

Hi,

Maybe a memory issue...

I'm just experiencing some difficulties using Inkscape 0,48.

It seems Inkscape don't clean memory so even after resizing and/or erasing one or more page element, memory isn't cleaned...

I have imported 4 pictures 4000x3000dpi, 3,8Mb JPG (34,3Mb BMP), resized to 800X600 than erased 2.

I have saved the 2 remain pictures in SVG (23,8Mb).

However, with a start around 70MB in RAM, after 4 pictures imported and even resized, Inkscape has boosted to 734Mb RAM and remain, even after erasing entire page !?

So if i have other pictures to merge, i need to close Inkscape and to restart it, again, and again, and again...

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Cannot import more jpg or png in a single svg

Postby tylerdurden » Mon Dec 29, 2014 1:21 am

Two things to consider...

Inkscape does not change bitmap image data when scaling in the workspace.
Inkscape retains the undo buffer/history after saving, within the same session.

I would scale large bitmaps in Gimp before importing into Inkscape... at least scale close to needed size with some room for adjustment.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Adgenodux
Posts: 3
Joined: Sun Dec 28, 2014 11:13 pm

Re: Cannot import more jpg or png in a single svg

Postby Adgenodux » Sat Jan 03, 2015 6:48 am

hi and thanks for tips...

of course inkscape isn't a picture editor but resizing is a "basic" task that should be able to free up memory space following real occupied space into workspace, at least after saving svg... this is bitmap so reduced pics wouldn't take same memory space as originals... Gimp looks like a Rube Goldberg machine just to risize pictures and undo function would remember successive tasks and not, as it seems to be, all the elements attributes... in my opinion and with huge consideration for awesome work behind inkscape of course...

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Cannot import more jpg or png in a single svg

Postby tylerdurden » Sat Jan 03, 2015 8:22 am

Part of the awesomeness of Inkscape is the fact that it doesn't toss data when scaling the bitmaps; unlike many raster editors, where you cannot resize image objects down/up without significant degradation.

But, If you truly want to scale bitmap data within Inkscape, the scaled raster can be exported at the desired filesize/scale and re-imported to the same location.

To maintain undo, all image data should be retained in ram within session, disk cache like P-shop can be quite tedious.

If you want to see a real memory pig, try Photoshop or Illustrator. I dumped P-shop for Gimp back at P-shop v4 and haven't looked back since. Gimp is anything but Rube Goldberg.

Cheers,
TD
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Adgenodux
Posts: 3
Joined: Sun Dec 28, 2014 11:13 pm

Re: Cannot import more jpg or png in a single svg

Postby Adgenodux » Sun Jan 04, 2015 1:40 am

I never hung out nor used p-shop/illustrator, real huge rube goldberg at my level of use but not so easy to find nice tools that are often bundled with many adwares (ImageResizer, FreeScreenshotCapture), even native, or are mainly command line drived (ImageMagick) or need to be compiled with plugin(s) (précisely Gimp !) for batch processing so not realy user friendly and more advanced users oriented :/

nothing is surely perfect...


Return to “Help with using Inkscape”