4xx / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

PNG export should clip to paths rather than artboard (canvas) #780

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Draw something smaller than the canvas dimensions
2. Export to PNG
3.

What is the expected output? What do you see instead?
I think the default should be a PNG clipped to the area of the image, but 
instead the entire artboard (canvas) determines the total dimensions.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by adrianbj...@gmail.com on 9 Feb 2011 at 11:05

GoogleCodeExporter commented 9 years ago
I would argue that the current behavior is what is expected.  The canvas (white 
area) is the area of your image.

Original comment by codedr...@gmail.com on 10 Feb 2011 at 12:27

GoogleCodeExporter commented 9 years ago
I guess I am used to Illustrator's default (pretty certain it is default - I 
don't think I changed my setup), but just checked and I see that Inkscape 
includes the canvas as well. Perhaps it could be added to the list of PNG 
export options proposed in Issue 708. Would that work?

Original comment by adrianbj...@gmail.com on 10 Feb 2011 at 12:37

GoogleCodeExporter commented 9 years ago
I think an 'Export Selected Objects' option would solve that

Original comment by dezigns...@gmail.com on 10 Feb 2011 at 5:10

GoogleCodeExporter commented 9 years ago
I guess perhaps I am biased towards my most common users who will likely be 
trying to import the PNG into Word or PowerPoint. Because of their lack of 
experience with graphics packages in general, let alone vector (which I think 
is a foreign concept to most computer users), I don't think they will 
understand the concept of an image taking up all this extra space when they 
import it elsewhere. I can see them trying to use the cropping tool in 
PowerPoint to get around the problem. 

I would like to see an export dialog (rather than a setting in Document 
Properties) that allows them to choose clip to: all objects, entire canvas, or 
selected objects. Ideally a preview panel could show them the exactly what they 
would get on export. Not sure what the default should be :)

Original comment by adrianbj...@gmail.com on 10 Feb 2011 at 5:27

GoogleCodeExporter commented 9 years ago
I disagree about adding yet another option for this to the user interface.  Can 
you explain why going to Document Properties and choosing Fit To Content before 
exporting as PNG is not ok?

Original comment by codedr...@gmail.com on 10 Feb 2011 at 6:57

GoogleCodeExporter commented 9 years ago
I guess my thoughts on this are twofold. 

Firstly, a casual user probably won't find the "Fit to Content" option, let 
alone realize that it will solve their export problem.

Secondly, if you do "fit to content", just so you can export a png as you want 
(without the extra canvas space), then if you want to continue editing you may 
need to increase the canvas size again. Note that the history stack doesn't 
allow undoing of canvas size. Also, increasing the canvas size again puts the 
objects at the top left of the canvas, whereas the user was most likely drawing 
in the middle of the canvas before they fitted to content.

I guess I just feel that it would be simpler for the user to not have to deal 
with these changes to do a simple export.

I agree that more options may become cluttered, but I think this deserves some 
consideration to make it functional for a typical user.

Original comment by adrianbj...@gmail.com on 10 Feb 2011 at 7:19

GoogleCodeExporter commented 9 years ago
Ok, that's fine.  I'll just reiterate my stance:

  a) the default option should be to generate a PNG based on the size the user has made the canvas - this is the intuitive and logical thing to do, in my opinion.
  b) I prefer not to clutter the UI with tons of options - it leads to clutter and confusion.  Every time we add a checkbox to the UI we should be questioning if we really need it.

However, given you feel strongly about this issue, I won't stand in your way if 
you implement it :)

Original comment by codedr...@gmail.com on 10 Feb 2011 at 7:34

GoogleCodeExporter commented 9 years ago
I think an Export dialog would be a good thing to implement, but I still 
contend that the logical/default thing to do when exporting as PNG is to stick 
to what the user has set the canvas size to.

Original comment by codedr...@gmail.com on 10 Feb 2011 at 7:39

GoogleCodeExporter commented 9 years ago
Now you're making me sound like a bully :)

When I get a chance I'll try to put something together and run it by you to see 
if I can come up with something we'll all be happy with.

Original comment by adrianbj...@gmail.com on 10 Feb 2011 at 7:41

GoogleCodeExporter commented 9 years ago
Not at all :)

And here's my lunch money, sir...

Original comment by codedr...@gmail.com on 10 Feb 2011 at 7:45

GoogleCodeExporter commented 9 years ago
LOL - really, I am :)

And I thought not being on Facebook would keep me from wasting time writing 
inane comments.

Original comment by adrianbj...@gmail.com on 10 Feb 2011 at 7:52