Problem with screenshot copying

General discussions about Inkscape.
emil.sekula

Problem with screenshot copying

Postby emil.sekula » Wed Jan 13, 2010 9:14 pm

Hello,

I have some problem with using Inkscape. I paste some screenshot to it but there is some strange image: http://img697.imageshack.us/img697/2958/inkscapez.png Why ?

Regards,

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Problem with screenshot copying

Postby ~suv » Wed Jan 13, 2010 11:56 pm

emil.sekula wrote:I paste some screenshot to it but there is some strange image. Why ?

Looks like the other screenshots in the comments of bug #168386 in Inkscape: “Large PNG image import fails.” - I haven't read about a fix or workaround, sorry.

flm
Posts: 13
Joined: Wed Jan 13, 2010 8:50 am

Re: Problem with screenshot copying

Postby flm » Thu Jan 14, 2010 7:31 am

I don't think it's same bug.
With inkscape 0.47 i had often got this kind of "broken" image when i take screenshot and then just paste it into inkscape. After some changes in options situation has become worse - i allways get a crash when i try to paste... But if I delete preferences.xml, pasted images look normal. So maybe it's some kind of options-related bug, i don't know... :(
SFMBE (Sorry for my bad english)

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Problem with screenshot copying

Postby ~suv » Thu Jan 14, 2010 8:19 am

flm wrote:I don't think it's same bug.
With inkscape 0.47 i had often got this kind of "broken" image when i take screenshot and then just paste it into inkscape
When pasting an image into Inkscape first a new PNG file with the contents of the clipboard has to be written, then Inkscape inserts a link to it in the SVG document and loads it the same way as any other imported bitmap image…
flm wrote:i allways get a crash when i try to paste... But if I delete preferences.xml, pasted images look normal.
Depending on the folder Inkscape uses to store the PNG file for the pasted image it might crash if the user doesn't have write permission for that location (e.g. the installation folder of Inkscape as the 'current' working directory where Inkscape was launched from).

A workaround to avoid this type of crashes is to save the new, empty document before pasting a screenshot or some other picture from the clipboard. Thus the PNG file that Inkscape needs to create is written to the same directory where the newly saved document is located.

flm
Posts: 13
Joined: Wed Jan 13, 2010 8:50 am

Re: Problem with screenshot copying

Postby flm » Thu Jan 14, 2010 9:42 am

~suv wrote:
flm wrote:i allways get a crash when i try to paste... But if I delete preferences.xml, pasted images look normal.
Depending on the folder Inkscape uses to store the PNG file for the pasted image it might crash if the user doesn't have write permission for that location (e.g. the installation folder of Inkscape as the 'current' working directory where Inkscape was launched from).

A workaround to avoid this type of crashes is to save the new, empty document before pasting a screenshot or some other picture from the clipboard. Thus the PNG file that Inkscape needs to create is written to the same directory where the newly saved document is located.

Ok, now I got rid off my crash problem. The problem was that property "path" in group id="save_as" pointed to a nonexistent path...

p.s.: i attached some problematic pasted screenshot...
inkscape_pasted_image_20100114_013638.png
inkscape_pasted_image_20100114_013638.png (164.33 KiB) Viewed 2336 times
SFMBE (Sorry for my bad english)

emil.sekula

Re: Problem with screenshot copying

Postby emil.sekula » Thu Jan 14, 2010 9:43 pm

Why when I paste screenshoot to the Inskcape it is not with original size: http://img138.imageshack.us/img138/80/inkscape.png ?

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

Re: Problem with screenshot copying

Postby RobA » Fri Jan 15, 2010 12:27 am

emil.sekula wrote:Why when I paste screenshoot to the Inskcape it is not with original size: http://img138.imageshack.us/img138/80/inkscape.png ?


You are probably not looking at it 1:1.

Use the zoom tool to go 1:1 or just hit "1" on the keyboard.

-Rob A>

emil.sekula

Re: Problem with screenshot copying

Postby emil.sekula » Tue Jan 19, 2010 9:56 pm

And why the original size is faint: http://img200.imageshack.us/img200/80/inkscape.png ?

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

Re: Problem with screenshot copying

Postby prkos » Tue Jan 19, 2010 10:10 pm

emil.sekula wrote:And why the original size is faint: http://img200.imageshack.us/img200/80/inkscape.png ?

You have to snap it to the correct pixel grid, half a pixel I think for objects without stroke. You can make the grid yourself and snap the screenshot or you can use an extension Pixel Snap.

If it didn't come with your Inkscape installation check out this thread viewtopic.php?f=14&t=3653
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


Return to “General Discussions”