Automatically create book covers from Inkscape templates?
Hi all,
We at FLOSS Manuals would like to use Inkscape to automatically create PDF images for use as book covers by manipulating a template SVG file. The question is if Inkscape has the needed features and if we know how to use them.
Here's an example of what a final book cover would ideally look like: http://tuukka.iki.fi/tmp/example-cover.png
The ideal work flow would include an artist downloading an initial template made by a programmer who understands how Inkscape handles layers, flowed text etc. in the SVG level. The artist could modify the template in Inkscape and add it to a template collection. When a book is published, the user would choose a template from the collection and a script would fill in the book name, author, book logo and convert the SVG to PDF. In addition, the script would need to modify the width of the spine (the middle part in the example image) based on the number of pages in the book.
Has anyone done anything like this before? Would it be feasible? One specific question would be if it's possible to somehow scale the font size of the book name to meet the specified page width.
I had an initial discussion on the #inkscape IRC channel and got the following link as an example of simple search-and-replace: http://wiki.colivre.net/Aurium/InkscapeGenerator
One issue would seem to be the inclusion of nested SVG images within the SVG document, but this could be worked around by including images as PNGs exported with appropriate DPI: http://article.gmane.org/gmane.comp.graphics.inkscape.user/14208
Could someone on this list perhaps help us by creating a simple template which a search-and-replace process could then customise by substituting the book info texts, image filenames and the spine width?
Regards, Tuukka
Hi,
This is just a brainwave, so I don't send it to the community...
JavaScript, especially combined with jQuery, can generate and handle SVG. I can imagine using JavaScript/jQuery to achieve what you want, using a base design, that gets adjusted by using jQuery. This might be easier for manipulation then crude search and replace actions.
Maybe it helps,
Kind regards,
Maarten
Met vriendelijke groet, Maarten van der Velde
Maarten.Velde@...2909... T F
The Power of Financial Insight Please consider the environment before printing this e-mail.
(Sogetie) -----Original Message----- From: Tuukka Hastrup [mailto:tuukka@...2908...] Sent: vrijdag 14 oktober 2011 14:23 To: inkscape-user@lists.sourceforge.net Subject: [Inkscape-user] Automatically create book covers from Inkscape templates?
Hi all,
We at FLOSS Manuals would like to use Inkscape to automatically create PDF images for use as book covers by manipulating a template SVG file. The question is if Inkscape has the needed features and if we know how to use them.
Here's an example of what a final book cover would ideally look like: http://tuukka.iki.fi/tmp/example-cover.png
The ideal work flow would include an artist downloading an initial template made by a programmer who understands how Inkscape handles layers, flowed text etc. in the SVG level. The artist could modify the template in Inkscape and add it to a template collection. When a book is published, the user would choose a template from the collection and a script would fill in the book name, author, book logo and convert the SVG to PDF. In addition, the script would need to modify the width of the spine (the middle part in the example image) based on the number of pages in the book.
Has anyone done anything like this before? Would it be feasible? One specific question would be if it's possible to somehow scale the font size of the book name to meet the specified page width.
I had an initial discussion on the #inkscape IRC channel and got the following link as an example of simple search-and-replace: http://wiki.colivre.net/Aurium/InkscapeGenerator
One issue would seem to be the inclusion of nested SVG images within the SVG document, but this could be worked around by including images as PNGs exported with appropriate DPI: http://article.gmane.org/gmane.comp.graphics.inkscape.user/14208
Could someone on this list perhaps help us by creating a simple template which a search-and-replace process could then customise by substituting the book info texts, image filenames and the spine width?
Regards, Tuukka
------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Hi Maarten,
2011-10-14 06:00, Maarten van der Velde kirjoitti:
This is just a brainwave, so I don't send it to the community...
(I think you still did by accident.)
JavaScript, especially combined with jQuery, can generate and handle SVG. I can imagine using JavaScript/jQuery to achieve what you want, using a base design, that gets adjusted by using jQuery. This might be easier for manipulation then crude search and replace actions.
Maybe it helps,
Thanks for the idea! However, even if I go down this path I'll still need to figure out the specific SVG constructs that lend themselves to templating as well as run the resulting SVG file through Inkscape to get the automatically flowed texts to render. But you're right, it's definitely nicer to manipulate an XML file in jQuery than in plain text search-and-replaces!
Kind regards,
Maarten
Met vriendelijke groet, Maarten van der Velde
Maarten.Velde@...2909... T F
The Power of Financial Insight Please consider the environment before printing this e-mail.
(Sogetie) -----Original Message----- From: Tuukka Hastrup [mailto:tuukka@...2908...] Sent: vrijdag 14 oktober 2011 14:23 To: inkscape-user@lists.sourceforge.net Subject: [Inkscape-user] Automatically create book covers from Inkscape templates?
Hi all,
We at FLOSS Manuals would like to use Inkscape to automatically create PDF images for use as book covers by manipulating a template SVG file. The question is if Inkscape has the needed features and if we know how to use them.
Here's an example of what a final book cover would ideally look like: http://tuukka.iki.fi/tmp/example-cover.png
The ideal work flow would include an artist downloading an initial template made by a programmer who understands how Inkscape handles layers, flowed text etc. in the SVG level. The artist could modify the template in Inkscape and add it to a template collection. When a book is published, the user would choose a template from the collection and a script would fill in the book name, author, book logo and convert the SVG to PDF. In addition, the script would need to modify the width of the spine (the middle part in the example image) based on the number of pages in the book.
Has anyone done anything like this before? Would it be feasible? One specific question would be if it's possible to somehow scale the font size of the book name to meet the specified page width.
I had an initial discussion on the #inkscape IRC channel and got the following link as an example of simple search-and-replace: http://wiki.colivre.net/Aurium/InkscapeGenerator
One issue would seem to be the inclusion of nested SVG images within the SVG document, but this could be worked around by including images as PNGs exported with appropriate DPI: http://article.gmane.org/gmane.comp.graphics.inkscape.user/14208
Could someone on this list perhaps help us by creating a simple template which a search-and-replace process could then customise by substituting the book info texts, image filenames and the spine width?
Regards, Tuukka
All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
On Fri, 14 Oct 2011 05:23:11 -0700 Tuukka Hastrup <tuukka@...2908...> wrote:
Hi all,
We at FLOSS Manuals would like to use Inkscape to automatically create PDF images for use as book covers by manipulating a template SVG file. The question is if Inkscape has the needed features and if we know how to use them.
Here's an example of what a final book cover would ideally look like: http://tuukka.iki.fi/tmp/example-cover.png
The ideal work flow would include an artist downloading an initial template made by a programmer who understands how Inkscape handles layers, flowed text etc. in the SVG level. The artist could modify the template in Inkscape and add it to a template collection. When a book is published, the user would choose a template from the collection and a script would fill in the book name, author, book logo and convert the SVG to PDF. In addition, the script would need to modify the width of the spine (the middle part in the example image) based on the number of pages in the book.
Has anyone done anything like this before? Would it be feasible? One specific question would be if it's possible to somehow scale the font size of the book name to meet the specified page width.
I had an initial discussion on the #inkscape IRC channel and got the following link as an example of simple search-and-replace: http://wiki.colivre.net/Aurium/InkscapeGenerator
One issue would seem to be the inclusion of nested SVG images within the SVG document, but this could be worked around by including images as PNGs exported with appropriate DPI: http://article.gmane.org/gmane.comp.graphics.inkscape.user/14208
Could someone on this list perhaps help us by creating a simple template which a search-and-replace process could then customise by substituting the book info texts, image filenames and the spine width?
Regards, Tuukka
All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com
Are you aware of the Inkscape feature that templates a perfect bound book cover based on fill in the blanks for dimensions, page count, ppi and cover thickness? It is buried in the Extensions->Render menu, about 3/4 of the way down. It doesn't answer your need directly but it could be worked into the solution.
participants (3)
-
john Culleton
-
Maarten van der Velde
-
Tuukka Hastrup