Inkscape surprise!

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
mac4000

Inkscape surprise!

Postby mac4000 » Fri Oct 30, 2009 9:31 pm

Hi, inkscape surprised me a bit just now. I opened a jpg pic with my sketch and spent the next few hours turning it in into a vectorized image with gradients and nice things. Off course i saved it regularly. Now i come back from lunch and was gonna open my image again. Turns out that inkscape had saved it as a jpg image all the time, cause my original sketch was a jpg. So my vectors are gone and all i have is a useless bitmap. :D Would be even funnier if i didn't actually try to make a living of this. I would suggest the inkscape developers to add a little warning when u save into a lossy format. Well, well, back to work...

Slow Dog
Posts: 180
Joined: Wed Sep 24, 2008 7:51 pm

Re: Inkscape surprise!

Postby Slow Dog » Fri Oct 30, 2009 11:16 pm

Which version of Inkscape?

I found it impossible to repeat what you said you've done with either 0.46 or 0.47.

The nearest I managed was to save the svg file with a jpg extension, though only by manually overriding Inkscape's defaults; there is no option to save as jpg. It didn't open as a Jpeg, though, and after renaming it with a .svg extension it opened in Inkscape with vectors intact. Perhaps you could try the same.

It's more likely, though, that the vector image is saved somewhere you didn't expect. Just look in Inkscape->"Open Recent".

There are also possibilities for auto-save or on-crash saved versions.

mac4000

Re: Inkscape surprise!

Postby mac4000 » Sat Oct 31, 2009 2:47 am

Thanks for looking into it. I have no trouble reproducing the behaviour. Open a .jpg photo, draw a line, save and click trough the ok's. Maybe i got a version with special features, it's 0.46. Anyway my second pic quicker and probably better than the first, so i'm ok. Just think inkscape should warn before it makes a bitmap of everything.

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: Inkscape surprise!

Postby RobA » Sat Oct 31, 2009 4:43 am

I also can't repeat your problem.

Clicking Sav anter opening a jpg results in a blank dialog with the svg extension preselected. If I click OK, nothing gets saved. I have to manually change it to png (jpg is not an option in my version).

-Rob A>

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Inkscape surprise!

Postby prkos » Sat Oct 31, 2009 8:07 am

This might be relevant, it's been fixed recently

Opened bitmap images get overwritten with svg on save without warning https://bugs.launchpad.net/inkscape/+bug/429529
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

max4000

Re: Inkscape surprise!

Postby max4000 » Sat Oct 31, 2009 8:48 pm

Then maybe you can reproduce the basic issue. It didn't give a warning when converted to png, right? That is really the problem. It is standard practice to warn before you save to a format that don't fully support your application. For example a word document to text file. If my inkscape also behaved like that, I probably wouldn't have lost my file.

Do inkscape autosave regularly, if I had found an autosave, that would also have saved me from losing my work. I just try to suggest how the application can be improved.

llogg
Posts: 443
Joined: Tue Mar 11, 2008 7:30 am

Re: Inkscape surprise!

Postby llogg » Sat Oct 31, 2009 9:55 pm

There is no autosave. Are you sure you lost your work? This is inkscape's behavior with bitmaps in my experience:
1. If you open Inkscape then import the bitmap under File>Import, and then go to save your default filename is drawing.svg and "Inkscape svg" in the box in the bottom right of the dialog.

2. If you open the bitmap directly into Inkscape (in Windows by right clicking and selecting "open with" and choosing Inkscape) and make no other changes, then save does nothing and you still have a bitmap file only.

3. If you open the bitmap directly into Inkscape as above, then add some vector element (basically do anything in Inkscape), then save you're default filename is yourfilename.bitmapextension (e.g. llogg.png) with "Inkscape svg" in the box in the bottom right of the dialog. This creates a file with the full name yourfilename.bitmapextension.svg (e.g. llogg.png.svg). So your filename will contain the bitmap extension, and in certain icon views on windows you might think it's a bitmap but it IS an SVG vector file. The only way to get a bitmap after adding vector elements by using the save function would be to select "Guess from extension" in the save dialog (see screen cap). Since Inkscape SVG is the default selection, you must have changed the default settings somehow such that "Guess from extension" is the default. Still, if you didn't change the filename of the bitmap you should get the warning that "yourfilename.bitmapextension already exists. Do you want to replace it?" (Not sure that's verbatim, but close enough.)
Image


Return to “Discuss Software Issues”