Hi all, I am really a beginner an I use Inkscape only to make some simple SVG for my website.
I have created an SVG using optimized SVG. but it creates this <g transform="translate(-95.295 -33.594)">, as per my understanding it is because it is not center in the middle ?
I have created the facebook logo here, and I have used this shortcut CTRL + SHIFT + R, to fit the caneva to my path. Here is the generated code (first time I am posting so i guess the code snippet is on the top). My question is simple how to create the same without this "<g transform="translate(-95.295 -33.594)">" ?
Thank you in advance to the people who gonna help me.
Thank you for your answer, as I said I am not an Inkscape specialist. But in the dialog box there is only 1 layer. I have tried to group and ungroup the object as well. I think it is more related to the viewbox cause the value of transform differe if I move my object elsewhere in Inkscape.
Thank you Tyler you made it very clear. I have tried several times but I still have this group in optimized SVG, which has this transform translate attribute. If I remove it it seems to disappear from the viewbox.
After lot of search and many tries, it seems that the short cut "Shift Ctrl R" resize page to selection and creates this group and the translate. I have then recreate the SVG using the "Ctrl Shift D" and resized based on the output size widht"22.785" height"42.532" under the custom size. I have deleted the imported svg and recreate the same one, I have saved it and the group disappeared.
Hi all, I am really a beginner an I use Inkscape only to make some simple SVG for my website.
I have created an SVG using optimized SVG. but it creates this <g transform="translate(-95.295 -33.594)">, as per my understanding it is because it is not center in the middle ?
I have created the facebook logo here, and I have used this shortcut CTRL + SHIFT + R, to fit the caneva to my path. Here is the generated code (first time I am posting so i guess the code snippet is on the top). My question is simple how to create the same without this "<g transform="translate(-95.295 -33.594)">" ?
Thank you in advance to the people who gonna help me.
I'd use the Objects dialog to change the layer to a group (click icon in the T column), then ungroup the objects before saving as an optimized svg.
Hi Tyler,
Thank you for your answer, as I said I am not an Inkscape specialist. But in the dialog box there is only 1 layer. I have tried to group and ungroup the object as well. I think it is more related to the viewbox cause the value of transform differe if I move my object elsewhere in Inkscape.
The layer must be converted to a group using the T column icon, then it can be ungrouped, removing the transform.
Thank you Tyler you made it very clear. I have tried several times but I still have this group in optimized SVG, which has this transform translate attribute. If I remove it it seems to disappear from the viewbox.
After lot of search and many tries, it seems that the short cut "Shift Ctrl R" resize page to selection and creates this group and the translate. I have then recreate the SVG using the "Ctrl Shift D" and resized based on the output size widht"22.785" height"42.532" under the custom size. I have deleted the imported svg and recreate the same one, I have saved it and the group disappeared.
this thread help me:
https://alpha.inkscape.org/vectors/www.inkscapeforum.com/viewtopicb633-2.html?t=17884
If you have an easier way to solve this would be brilliant.
The other way as described in the thread, is to open the xml editor, remove the transform translate, and repalce it manually in the sized page.
Have you tried snapping the paths bounding box corner to page corner before resizing with (shift+ctrl+r)?
Helkowsky, What is the state of the Store Transforms in your preferences?