Switch icon sizes

Post questions on how to use or achieve an effect in Inkscape.
meetdilip
Posts: 66
Joined: Sun Dec 03, 2017 12:28 am

Switch icon sizes

Postby meetdilip » Tue Jul 16, 2019 12:26 pm

I normally draw icons with the 128px template. For icon themes, we need to have it for other sizes too. ie, 32 px, 64 px, 512 px etc. Is there any way to convert / change the workspace + drawing to another icon size ( say 64 px ) ? I am ok even if it is one change of size at a time with the same window or another window.

ie, I have a 128 px drawing and I need to convert the whole thing to another size without leaving the window. Thanks.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Switch icon sizes

Postby Moini » Wed Jul 17, 2019 10:35 am

Do you need the icons as SVG or PNG?

Is it the preview that you care about?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

meetdilip
Posts: 66
Joined: Sun Dec 03, 2017 12:28 am

Re: Switch icon sizes

Postby meetdilip » Wed Jul 17, 2019 3:40 pm

Ubuntu requires icons to be in 32x32, 64x64 etc. Say we have a 32x32 template with icon drawing ( finished ) in it. Is there something we can do that after the process we have a 64x64 ( example) resized template and drawing ?

Edit 1:

Locking the width on the top panel after selecting the drawing helps to resize it. CTRL + Shitft + R helps in resizing the canvas without leaving the window. But it does not consider the margin that exists between drawing and the canvas. The canvas resizes tightly around the drawing.

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

Re: Switch icon sizes

Postby tylerdurden » Thu Jul 18, 2019 5:17 am

You could try adding a transparent rectangle behind your drawing the size of your full drawing plus margin.
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/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Switch icon sizes

Postby Moini » Thu Jul 18, 2019 8:26 am

So, you need SVG? Or PNG?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

meetdilip
Posts: 66
Joined: Sun Dec 03, 2017 12:28 am

Re: Switch icon sizes

Postby meetdilip » Thu Jul 18, 2019 11:35 am

@tylerdurden Sounds good :)

@Moini SVG , so that I can use various sizes for icon theme. Thanks.

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: Switch icon sizes

Postby Polygon » Thu Jul 18, 2019 6:55 pm

What I usually do is drawing on a square template (32x32px) canvas and export resolution via->Image Size Width+Height=32x32/64x64/128x128 etc.
As I need tiff/72dpi in the end I use GIMP´s batch processing for that. For what I need as an icon forger for UI icons is just 32x32/64x64(Retina resolution) icons while the developer has tools ready for icon building.
190718-0004.jpg
190718-0004.jpg (56.15 KiB) Viewed 1017 times

Cheers

meetdilip
Posts: 66
Joined: Sun Dec 03, 2017 12:28 am

Re: Switch icon sizes

Postby meetdilip » Thu Jul 18, 2019 7:35 pm

Polygon wrote:What I usually do is drawing on a square template (32x32px) canvas and export resolution via->Image Size Width+Height=32x32/64x64/128x128 etc.

Cheers

Can you please make a GIF or video of how you are doing it. When I alter those values, the image gets distorted. Thanks.

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: Switch icon sizes

Postby Polygon » Thu Jul 18, 2019 8:33 pm

Sure:
PageExport.gif
PageExport.gif (214.98 KiB) Viewed 1010 times

IconSizes.gif
IconSizes.gif (121.32 KiB) Viewed 1010 times

Cheers

meetdilip
Posts: 66
Joined: Sun Dec 03, 2017 12:28 am

Re: Switch icon sizes

Postby meetdilip » Thu Jul 18, 2019 11:23 pm

Ok, thanks.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Switch icon sizes

Postby Moini » Sat Jul 20, 2019 1:41 am

Mmh. For resizing the SVG, I don't know any extension that can do it. You could edit the SVG files manually in a text editor (or automate this), by changing the values for width and height. That should be a quick text editing script to write.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”