Re: [Gimp-user] Cannot use function file-pdf-save-multi
On 10/28/19 10:59 AM, renzofilini wrote: pdf_filename = "/tmp/multipage_output.pdf" pdb.file_pdf_save_multi(len(images), images_ids, False, True, False, pdf_filename, pdf_filename) Works for me (Ubuntu 16.04). In more recent release of Ubuntu, Gimp installed as a snap package is restricted by default to your Home tree. You have to tweak things to make it write elsewhere. Otherwise, Gimp and OS versions? ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
[Gimp-user] A Surgeon' Knot Release date of 4/23/2020
William Lynes invites your attention to ASK ** A Surgeon's Knot Release Date 4/23/2020. Jackson Cooper. MD will never forget that first day, its stunning conclusion forever etched in his mind. His year as a surgical intern is filled with medical suspense, tragedy, and often times terror, as this young physician deals with the world of surgery. The surgeon’s knot is a surgical tie used in the operating room which the intern practices ceaselessly. The knot refers, as well, to the tangled world of the protagonist. Jackson’s life soon becomes burned-out, resulting from events beyond his control as well as destructive behavior. Physicians, patients, and cases ranging from humorous to tragic are present. A Surgeon’s Knot is a story of the dignity of medicine, the overwhelming duty to man, failure and recovery. ASK will release April 232,2020 by Black Rose Writing of Texas. William Lynes, MD. https://gmail.us20.list-manage.com/track/click?u=11864e9728bdb24e2b0182fbe&id=73b890a975&e=f657256159. Subscribe to email notification (https://gmail.us20.list-manage.com/track/click?u=11864e9728bdb24e2b0182fbe&id=0fca29852c&e=f657256159) ** Facebook (https://gmail.us20.list-manage.com/track/click?u=11864e9728bdb24e2b0182fbe&id=424b9fcd50&e=f657256159) ** Twitter (https://gmail.us20.list-manage.com/track/click?u=11864e9728bdb24e2b0182fbe&id=7ca9f8f6bd&e=f657256159) ** Link (https://gmail.us20.list-manage.com/track/click?u=11864e9728bdb24e2b0182fbe&id=67695db780&e=f657256159) ** Website (https://gmail.us20.list-manage.com/track/click?u=11864e9728bdb24e2b0182fbe&id=cd11758e37&e=f657256159) Copyright © 2019 lynesonline.com, All rights reserved. You are receiving this email because you opted in via our website. Our mailing address is: lynesonline.com 30700 San Pasqual Rd Temecula, CA 92591-1520 USA Want to change how you receive these emails? You can ** update your preferences (https://gmail.us20.list-manage.com/profile?u=11864e9728bdb24e2b0182fbe&id=8c042c6810&e=f657256159) or ** unsubscribe from this list (https://gmail.us20.list-manage.com/unsubscribe?u=11864e9728bdb24e2b0182fbe&id=8c042c6810&e=f657256159&c=5149b73270) . Email Marketing Powered by Mailchimp http://www.mailchimp.com/monkey-rewards/?utm_source=freemium_newsletter&utm_medium=email&utm_campaign=monkey_rewards&aid=11864e9728bdb24e2b0182fbe&afl=1 ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
Re: [Gimp-user] Need SVG Path Export
On 10/28/19 5:41 AM, gimppimp wrote: Hello, I have created an svg from a png using Adobe Illustrator and the svg shows up in firefox, I then load the SVG up in Gimp and then: Select >> All Select >> To Path Then I right click Path Selection and export Path and when I place the path into javascript the image shows up as a black square and not the original png image as created in as svg, how do I get the svg path to show up as the full image not just a black square? "Select>All" selects the whole image (a 99x107px image?) "Select>To path" then generates a rectangle path that encompasses the whole image ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
[Gimp-user] Need SVG Path Export
>Hello, > >I have created an svg from a png using Adobe Illustrator and the svg >shows up in >firefox, I then load the SVG up in Gimp and then: > >Select >> All >Select >> To Path > >Then I right click Path Selection and export Path and when I place the >path into >javascript the image shows up as a black square and not the original >png image >as created in as svg, how do I get the svg path to show up as the full >image not >just a black square? I wonder how you did that? Did you trace it with the pen tool in Illustrator? Chances are the svg contains a polyline (an object) rather than a path. Open the SVG in an editor, should tell you. If that is the case you can convert the object to a path in Inkscape. example attached. Another indicator is opening the svg in Gimp, tick the Import paths and no paths in the paths dialogue. You can also import a path from an svg from the path dialogue, no path? Complain to Adobe. As previous post, no good using selection -> selection to path which will give an outline. You might actually have the whole canvas selected. If that is the way you want to go, you need a center-line trace. You can do that in Inkscape providing you have Autotrace installed. There is a plugin for Gimp that works with simple images see: https://gimpchat.com/viewtopic.php?f=9&t=17485 Also need Autotrace. Attachments: * https://www.gimpusers.com/system/attachments/1278/original/convert-to-path.jpg * https://www.gimpusers.com/system/attachments/1279/original/import-path.jpg -- rich404 (via www.gimpusers.com/forums) ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
[Gimp-user] Cannot use function file-pdf-save-multi
Attached file with correct formatting. >file-pdf-save-multi requires an array of image ids: >This is my python code: > ># ># PDF file-pdf-save-multi python-fu example ># TESTED ON: ># GIMP 2.10.12 Python Console ># Python 2.7.16 (default, May 28 2019, 08:10:12) [GCC 8.3.0 64 bit >(AMD64)] ># ># Get image array >images = gimp.image_list() ># ># Optionally sort by filename to order pages by filename ># images.sort(key=lambda x: x.filename, reverse=False) ># ># Extract ids from image array >images_ids = [img.ID for img in images] ># ># Save multi page pdf >pdf_filename = "/tmp/multipage_output.pdf" >pdb.file_pdf_save_multi(len(images), images_ids, False, True, False, >pdf_filename, pdf_filename) Attachments: * https://www.gimpusers.com/system/attachments/1277/original/file-pdf-save-multi-example.py -- renzofilini (via www.gimpusers.com/forums) ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
[Gimp-user] Cannot use function file-pdf-save-multi
file-pdf-save-multi requires an array of image ids: This is my python code: # # PDF file-pdf-save-multi python-fu example # TESTED ON: # GIMP 2.10.12 Python Console # Python 2.7.16 (default, May 28 2019, 08:10:12) [GCC 8.3.0 64 bit (AMD64)] # # Get image array images = gimp.image_list() # # Optionally sort by filename to order pages by filename # images.sort(key=lambda x: x.filename, reverse=False) # # Extract ids from image array images_ids = [img.ID for img in images] # # Save multi page pdf pdf_filename = "/tmp/multipage_output.pdf" pdb.file_pdf_save_multi(len(images), images_ids, False, True, False, pdf_filename, pdf_filename) >Hello, > I am having a problem with function file-pdf-save-multi(). > ># What I am trying to do > >I am trying to render a list of several XCF files into a single PDF, >each XCF file being rendered as a page of the output document. I have >a >first version, which works, but it uses file-pdf-save() to make one >PDF >file per XCF source file, and assembles them afterward using another >program. As I am writing this script for some other people, some using >GNU/Linux, and some Mac OS, I would like to keep the list of >dependencies as small as possible. So if I could manage to make it >pure >GIMP (and sh), it would be perfect. > ># The (non-working) script > >The core part of my script is given at the end of this message. It >provides two versions : >- the first one takes a single XCF file and converts it to PDF, using >file-pdf-save(). It works, but I would prefer the following one to >work: >- the second one takes several XCF (actually, twice the same in this >dummy version), and converts them as a two-pages PDF, each source XCF >being one page of the PDF, using function file-pdf-save-multi(). It >does >not work, the output being : > >ts> Create multipage PDF-Warning: An error occured while creating >the PDF file: >error while writing to output stream >Make sure you entered a valid filename and that the selected >location isn't read only! > >Error: Procedure execution of file-pdf-save-multi failed > > ># Error analysis > >The error message is weird: I looked at the source code of the two >functions I use (file-pdf-save and file-pdf-save-multi), and the way >the >output file is handled seems to be the same. However, although the >first >one succeeds, the second one fails, saying that maybe the location is >read only (which is not the case). >http://git.gnome.org/browse/gimp/tree/plug-ins/common/file-pdf-save.c > ># My question > >I could not find on the Internet any example of file-pdf-save-multi() >being used. The only documentation I found was the GIMP documentation, >which was not sufficient for me to use it. Can you help me to use this >function? > >Regards, >Louis > > Script == > >#!/bin/bash ># Usage: script_name.sh file.xcf ># Expected behavior: ># 1) creates output_simple.pdf as the PDF version of the argument ># 2) creates output_multi.pdf as a PDF containing two pages, >#each of which being a PDF version of the argument. ># Actual behavior: ># 1) works ># 2) fails, and I wonder why. ># ># I hope my email agent did not messed up two much with lines >breaks... > >input=$1 >output_base="output" > >echo "### Using file-pdf-save" >echo "\ >(let* \ >( \ > (image (car (gimp-file-load RUN-NONINTERACTIVE \"$input\" >\"$input\"))) \ > (drawable (car (gimp-image-merge-visible-layers image >CLIP-TO-IMAGE))) \ >) \ >(file-pdf-save RUN-NONINTERACTIVE image drawable >\"${output_base}_simple.pdf\" \"${output_base}_simple.pdf\" TRUE TRUE >TRUE) \ >) \ >(gimp-quit 0)" | \ >gimp -i -b - > >echo "\n###" >echo "### Using file-pdf-save-multi" > >echo "\ >(let \ >( \ >(images (cons-array 2 'double)) \ >) \ >( \ >(aset images 0 (car (gimp-file-load RUN-NONINTERACTIVE >\"$input\" \"$input\"))) \ >(aset images 1 (car (gimp-file-load RUN-NONINTERACTIVE >\"$input\" \"$input\"))) \ >(file-pdf-save-multi RUN-NONINTERACTIVE images 2 TRUE TRUE >TRUE \"${output_base}_multi.pdf\" \"${output_base}_multi.pdf\") \ >) \ >) \ >(gimp-quit 0)" | \ >gimp -i -b - -- renzofilini (via www.gimpusers.com/forums) ___ gimp-user-list mailing list List address:gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list