Different object size - moving from Inkscape to Paint.NET

Post questions on how to use or achieve an effect in Inkscape.
Splitintwo
Posts: 4
Joined: Wed Apr 24, 2013 8:58 am

Different object size - moving from Inkscape to Paint.NET

Postby Splitintwo » Mon May 06, 2013 11:55 pm

I've built a website to scale mock-up in inkscape, using zoom 1 to work at the correct level.

Here's a screenshot of the search field.
inkscape button pixel size compress2.png
inkscape button pixel size compress2.png (169.43 KiB) Viewed 1666 times


I copied the search field across from Inkscape to Paint.net and it changes size.

paint.net button compression.png
paint.net button compression.png (30.61 KiB) Viewed 1666 times


Frustratingly, when I recreate the button using the inkscape pixel numbers in CSS it's a different size too. (Code added in case interested)

Code: Select all

            <div id= 'search-container-position-block'>
                    <div class = 'search-container'>
                        <input type="text" class="search-interior" />
                    </div>
                   
                    <div class = 'search-container'>
                        <input type="text" class="search-interior" />
                    </div>
                   
                    <div class = 'search-container' />
                        <input type="text" class="search-interior" >
                    </div>
            </div>
           


Code: Select all

.search-container {

   border: 1px solid white;
   font-size:48px;
   float: left;
   margin-left: 40px;
   
   
}

.search-interior {
   height: 31px;
   width 221px;   
}


Am I missing a quirk about how inkscape sizes objects?

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

Re: Different object size - moving from Inkscape to Paint.NE

Postby brynn » Tue May 07, 2013 5:19 am

Image
Welcome to InkscapeForum!

I may not be the best person to answer this, since I'm not familiar with CSS or Paint.NET. But I do notice in the Paint.NET screenshot that it's not 100% zoom. In Inkscape, the actual size of an object doesn't change with the zoom. But maybe it does in P.N?

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

Re: Different object size - moving from Inkscape to Paint.NE

Postby Lazur » Tue May 07, 2013 6:30 am

There may be some problems caused by using a rectangle with a stroke.
Inkscape displays the size of the visual bounding box, not a wireframe object size.

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

Re: Different object size - moving from Inkscape to Paint.NE

Postby brynn » Tue May 07, 2013 6:57 am

It would have to be quite a wide stroke. But I have seen newbies change the stroke width to make something bigger, instead of just scaling it.

Splitintwo
Posts: 4
Joined: Wed Apr 24, 2013 8:58 am

Re: Different object size - moving from Inkscape to Paint.NE

Postby Splitintwo » Tue May 07, 2013 7:12 am

The stroke is only a single pixel wide, do you mean that could cause distortion?

I've noticed if you turn filters on, (I have inner glow typically) it increases the size of the button outside of the visible area, but I have this turned off specifically for that reason.

Also what do you mean by changing stroke width as opposed to scaling?

(Paint.NET does not change object size relative to zoom as it turns out)

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: Different object size - moving from Inkscape to Paint.NE

Postby Xav » Tue May 07, 2013 9:33 pm

SplitInTwo, when you say you "copied the search field across from Inkscape to Paint.net", what exactly do you mean?

If you selected the rectangle in Inkscape, copied to the clipboard, and pasted into Paint.net then there's a good chance that what's been copied is SVG code and Paint.net is rendering the drawing itself.

A better approach would be to use File > Export Bitmap to export your selected object as a PNG file, then load that into Paint.net. That way you're using Inkscape's rendering engine to create a bitmap, rather than Paint.net's.



(This is based on the assumption that Paint.net is a bitmap editor, and the end result will be a raster image rather than a vector, but as I haven't used Paint.net I can't be certain that it doesn't also include vector capabilities)
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

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

Re: Different object size - moving from Inkscape to Paint.NE

Postby Lazur » Wed May 08, 2013 12:58 am

Hmm well anoher thing that may cause this, is that inkscape work is 90 dpi based, and paint.net uses 72.
The dimensions show exactly this.

So you might try to scale all your design down to 80% in inkscape before you copy/paste it to paint.net.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Different object size - moving from Inkscape to Paint.NE

Postby hulf2012 » Wed May 08, 2013 3:50 am

Hello
Well, I've test with the PAINT that comes with Win7 (It's paint.net?).

Without any configuration, copied a rectangle from inkscape to paint.

And the rectangle resize in paint.

After some trial and error, i get this:

In Inkscape go to the File Menu, and choose page properties, or SHIFT + CTRL + D. Go to the frame that says custom size.
Change the size,(the width an height) to the size of the blank page that appears in PAINT. In PAINT you can get the size searching in the properties of the canvas.

It worked for me. Cross fingers

Somethin notedg. I exported the rect to a bitmap png (with make a bitmap copy ALT+b). The copied bitmap has 1 pixel less in both sides. Isn't there a work around yet?

Greetings
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.


Return to “Help with using Inkscape”