Re: [Gimp-developer] List of dependencies (versions and configuration options) for GIMP on Windows

2013-09-25 Thread Jehan Pagès
Hi,

On Mon, Sep 23, 2013 at 1:51 AM, Michael Henning
 wrote:
> As much fun as I'm sure you're all having debugging this, I think I've
> seen this before. I already fixed this with my windows nightlies
> (actually, scl reported it, so I guess he forgot about that).
>
> There are two potential issues:
>   1. fontconfig includes an absolute path to its config directory, so
> when you move the files to a windows system it cannot find them.
>
>   2. The config files themselves are symlinks, which may cause them to
> not exist on windows, depending on how the files are packaged.
>
> The solutions:
>   1. Modify etc/fonts/fonts.conf to remove the absolute path and
> replace it with a relative one (it should just say "conf.d", not
> long/path/and/then/conf.d). I compile fontconfig with this patch:
> https://git.gnome.org/browse/gimp/tree/build/windows/jhbuild/patches/fontconfig-fix-config-dir.patch
> You can achieve the same effect by modifying the config files by hand.
>
>   2. Ensure the files in etc/fonts/conf.d/ exist. If not, copy the
> files from share/fontconfig/conf.avail into that folder.

Sorry for the late reply. I wanted to test myself first to be sure it
fixed the issue.
And it does. I just tested on my master build. :-)
So that's indeed the problem and its solution.

> At the time I fixed this, Jernej's builds did not exhibit the problem
> because they used an older version of fontconfig. I did not report
> this upstream because it's a configuration issue, but now that I think
> about it, the defaults should perhaps be changed on windows (or maybe
> when cross compiling).

Yes I am not sure if upstream or else, but definitely somethings
should be done *somewhere*, otherwise we might have various new
developers to the team (or the same ones, forgetting it happened
already) scratching their head with this problem every 6 months. The
simple fact that the last Windows build is broken even though you had
this fixed from before this release is a sign there should be
something in place for this to not happen again. :-)

Thanks!

Jehan


> On Sun, Sep 22, 2013 at 9:09 AM, Jehan Pagès  
> wrote:
>> Hi,
>>
>> On Mon, Sep 23, 2013 at 12:49 AM, Sven Claussner  wrote:
>>> On  22.09.2013 at 12:32 P.M., Jehan Pagès wrote:
>>>
 Thanks Sven, but that does not say what versions are used on GIMP
 2.8.4, official build, which was my question. :-)
>>>
>>>
>>> Sorry for being a bit terse, I'm in a rush ;-)
>>>
>>> You can find the official 2.8.4 build at
>>>
>>> http://sourceforge.net/projects/gimp-win/files/GIMP%20%2B%20GTK%2B%20%28stable%20release%29/GIMP%202.8.4/
>>>
>>> Running GIMP with the -v or --version parameter shows the versions
>>> of the used libraries.
>>>
>>
>> Oh thanks, I did not know this one! Jernej actually already sent me an
>> archive with the dependency tree of his build. I was planning to check
>> the .pc files. Fortunately I did not start. And your solution will be
>> easier *and* more accurate. :-)
>>
>>> You can also find the 2.8.4 sources at the Web-Git site:
>>> https://git.gnome.org/browse/gimp
>>
>> Yes the source, I already have them, no problem. :-)
>> Thanks again.
>>
>> Jehan
>>
>>> Kind regards,
>>>
>>> Sven
>>>
>> ___
>> gimp-developer-list mailing list
>> List address:gimp-developer-list@gnome.org
>> List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list


Re: [Gimp-developer] Enhancement request GIMP "Search for all commands"

2013-09-25 Thread Jehan Pagès
Hi,

On Wed, Sep 25, 2013 at 9:22 PM, Srihari Sriraman  wrote:
> Hey Mika,
>
> It's great to see you person share my needs as well.
> I built Tito for GIMP a couple of years ago for the same purpose.
>
> Here is a demo: http://www.youtube.com/watch?v=G0PuH1LFWhA
> I even blogged about it: http://sriharisriraman.in/blog/2013/09/15/gimp-tito
>
> Good thing is that Jehan is now helping in getting this into master.
> You can see the progress on that in the feature request here:
> https://bugzilla.gnome.org/show_bug.cgi?id=708174

And I think I am done with it. :-)
Please have a look at your cleaned patch + mine. If you're happy with
it, the best to go on would be to bug Mitch for review on IRC. :p

Jehan

> If you are a developer, please do join in! it would be great to have
> another collaborator on this.
>
>
> On Tue, Sep 24, 2013 at 2:04 PM, Mika  wrote:
>
>> Hello Gimp Developers,
>>
>> I have been using GIMP for some time. I'm using it for logos, cards, photo
>> editing etc. I as many others at my workplace I find it a bit hard to find
>> the correct tool for a certain job. GIMP's overwhelming collection of tools
>> is a bit hard to search through with mouse in the big menu structure.
>>
>> I got to thinking that there is a great solution for this in a coding IDE I
>> use for work. Its global command and action search. I am talking about
>> IntelliJ IDEA and its ctrl-shift-a quick search.
>>
>> Here is a picture of what I mean.
>>
>> Possibly it could be context sensitive. Also if you could change the
>> context with some extra keys or mouse work while the search is on, I
>> suspect it would be really helpful. Ofcourse also provide the keyboard
>> shortcuts in the menu, so users can use the tool to learn those also.
>>
>> What do you think?
>>
>> Anyhow hope you find the time to finalise the discussion on this idea and
>> it finds its way to GIMP Release soon. I would try to find some time to
>> help design the solution and I suspect a few others also from my workplace
>> could help with some ideas also.
>> ___
>> gimp-developer-list mailing list
>> List address:gimp-developer-list@gnome.org
>> List membership:
>> https://mail.gnome.org/mailman/listinfo/gimp-developer-list
>>
> ___
> gimp-developer-list mailing list
> List address:gimp-developer-list@gnome.org
> List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list


[Gimp-developer] GSoC PSD Project Summary

2013-09-25 Thread CirqueForge
Hello everyone. GSoC officially ended on Monday so I wanted to summarize
the list of things that I was able to do during the project:

1.) Documentation was updated to reflect updated specifications from Adobe
inside the plugin.
2.) Plugin was ported to use GEGL
3.) > 8 bit color depth PSD files support was added.
4.) Parsing support for layer effects which can't be implemented yet.
5.) Header code changes including structures for slices and text which
can't be implemented yet.

I wasn't active in the mailing list but I was able to talk with some of you
on IRC. This was my first time contributing code to an open source project,
and although I was slow at times in terms of getting commits in, I was
still able to get help from everyone.

>From here on out, I plan to be able to learn more and contribute more to
the project as a whole. Many thanks to everyone for letting me work on this
project and for having the patience and kindness to work with me.

Sincerely,

Simon Lui
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list


Re: [Gimp-developer] converting svg to png with black background

2013-09-25 Thread Ofnuts

On 09/20/2013 08:01 PM, Matt Becker wrote:

Hi,

not sure if this is the right mailing list, I'm trying to convert svg to png 
(which is working), I just need to get the background black.

Here's my scm script:

(define (svg-to-raster infile
outfile
resolution
xmax
ymax)
   (let* ((image (car (file-svg-load
   RUN-NONINTERACTIVE
   infile
   ""
   resolution
   (- 0 xmax)
   (- 0 ymax)
   0
   )
  )
 )
  (drawable (car (gimp-image-get-active-layer image)))
)
 (plug-in-autocrop RUN-NONINTERACTIVE image drawable)
 (gimp-file-save RUN-NONINTERACTIVE image drawable outfile outfile)
 (gimp-image-delete image)
 )
   )


I want a non-antialiased png with black background as the final result, 
currently background is transparent.
See attached for my original svg image. It's converting fine from shell (other 
than black background) via:

gimp -i -b '( svg-to-raster "special_areas.svg" "special_areas.png" 72 0 0)' -b 
'(gimp-quit 0)'


Completely different solution;

Use gimp-vectors-import-from-file to import a path form a SVG, then 
create a layer, fill with black, and stroke the path after setting the 
foreground to the color of your choice. However this will get your 
something antialiased. The same without anti-aliasing: stroke the path 
on  a transparent layer, then  threshold the alpha channel.


Improvement on your solution:

- Once you have the path on the transparent layer, alpha lock the layer 
and bucket fill with the final color

- Inset black layer below.

___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list


Re: [Gimp-developer] API to parse a saved GIMP's curves file

2013-09-25 Thread Kevin Payne
A couple of years ago I wrote a script-fu script to read curve files if that 
helps: http://www.gimptalk.com/index.php?/topic/50107-batch-edit-curves/

Kevin 




> From: alessandrofrancesc...@live.it
> To: gimp-developer-list@gnome.org
> Date: Wed, 25 Sep 2013 09:21:55 +
> Subject: [Gimp-developer] API to parse a saved GIMP's curves file
> 
> Hello, I’m developing a plugin that must read the contents of a GIMP “curves” 
> file and build an array of points, in order to finally call the 
> gimp_curves_spline() 
> function:http://developer.gimp.org/api/2.0/libgimp/libgimp-gimpcolor.html#gimp-curves-spline
> 
> 
> I’m talking about the kind of file that is produced when a user goes to the 
> Curves dialog and clicks on “Export Settings to File”. An example of file is 
> the following:
> 
> 
> # GIMP curves tool settings
> 
> 
> (time 0)
> (channel value)
> (curve
> (curve-type smooth)
> (n-points 17)
> (points 34 0.00 0.00 -1.00 -1.00 [other X Y points...])
> (n-samples 256)
> (samples 256 0.00 0.012218 0.024425 0.036608 0.048757 0.060859 
> 0.072904 0.084878 0.096772 0.108573 0.120270 0.131851 0.143305 0.154619 
> 0.165783 0.176785 0.187612 0.198255 0.208700 0.218937 0.228954 0.238739 
> 0.248281 0.257568 0.266589 0.275331 0.283784 0.291935 0.299774 0.307288 
> [other samples...])
> 
> )
> 
> 
> 
> Is there a group of functions ready to be used to parse this kind of file? Or 
> I need to build it my myself?
> 
> 
> 
> Thank you,
> 
> Ale
> 
> www.alessandrofrancesconi.it
> ___
> gimp-developer-list mailing list
> List address:gimp-developer-list@gnome.org
> List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
  
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list


[Gimp-developer] API to parse a saved GIMP's curves file

2013-09-25 Thread Alessandro Francesconi
Hello, I’m developing a plugin that must read the contents of a GIMP “curves” 
file and build an array of points, in order to finally call the 
gimp_curves_spline() 
function:http://developer.gimp.org/api/2.0/libgimp/libgimp-gimpcolor.html#gimp-curves-spline


I’m talking about the kind of file that is produced when a user goes to the 
Curves dialog and clicks on “Export Settings to File”. An example of file is 
the following:


# GIMP curves tool settings


(time 0)
(channel value)
(curve
(curve-type smooth)
(n-points 17)
(points 34 0.00 0.00 -1.00 -1.00 [other X Y points...])
(n-samples 256)
(samples 256 0.00 0.012218 0.024425 0.036608 0.048757 0.060859 0.072904 
0.084878 0.096772 0.108573 0.120270 0.131851 0.143305 0.154619 0.165783 
0.176785 0.187612 0.198255 0.208700 0.218937 0.228954 0.238739 0.248281 
0.257568 0.266589 0.275331 0.283784 0.291935 0.299774 0.307288 [other 
samples...])

)



Is there a group of functions ready to be used to parse this kind of file? Or I 
need to build it my myself?



Thank you,

Ale

www.alessandrofrancesconi.it
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list


Re: [Gimp-developer] Enhancement request GIMP "Search for all commands"

2013-09-25 Thread Srihari Sriraman
Hey Mika,

It's great to see you person share my needs as well.
I built Tito for GIMP a couple of years ago for the same purpose.

Here is a demo: http://www.youtube.com/watch?v=G0PuH1LFWhA
I even blogged about it: http://sriharisriraman.in/blog/2013/09/15/gimp-tito

Good thing is that Jehan is now helping in getting this into master.
You can see the progress on that in the feature request here:
https://bugzilla.gnome.org/show_bug.cgi?id=708174

If you are a developer, please do join in! it would be great to have
another collaborator on this.


On Tue, Sep 24, 2013 at 2:04 PM, Mika  wrote:

> Hello Gimp Developers,
>
> I have been using GIMP for some time. I'm using it for logos, cards, photo
> editing etc. I as many others at my workplace I find it a bit hard to find
> the correct tool for a certain job. GIMP's overwhelming collection of tools
> is a bit hard to search through with mouse in the big menu structure.
>
> I got to thinking that there is a great solution for this in a coding IDE I
> use for work. Its global command and action search. I am talking about
> IntelliJ IDEA and its ctrl-shift-a quick search.
>
> Here is a picture of what I mean.
>
> Possibly it could be context sensitive. Also if you could change the
> context with some extra keys or mouse work while the search is on, I
> suspect it would be really helpful. Ofcourse also provide the keyboard
> shortcuts in the menu, so users can use the tool to learn those also.
>
> What do you think?
>
> Anyhow hope you find the time to finalise the discussion on this idea and
> it finds its way to GIMP Release soon. I would try to find some time to
> help design the solution and I suspect a few others also from my workplace
> could help with some ideas also.
> ___
> gimp-developer-list mailing list
> List address:gimp-developer-list@gnome.org
> List membership:
> https://mail.gnome.org/mailman/listinfo/gimp-developer-list
>
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list


[Gimp-developer] Enhancement request GIMP "Search for all commands"

2013-09-25 Thread Mika
Hello Gimp Developers,

I have been using GIMP for some time. I'm using it for logos, cards, photo
editing etc. I as many others at my workplace I find it a bit hard to find
the correct tool for a certain job. GIMP's overwhelming collection of tools
is a bit hard to search through with mouse in the big menu structure.

I got to thinking that there is a great solution for this in a coding IDE I
use for work. Its global command and action search. I am talking about
IntelliJ IDEA and its ctrl-shift-a quick search.

Here is a picture of what I mean.

Possibly it could be context sensitive. Also if you could change the
context with some extra keys or mouse work while the search is on, I
suspect it would be really helpful. Ofcourse also provide the keyboard
shortcuts in the menu, so users can use the tool to learn those also.

What do you think?

Anyhow hope you find the time to finalise the discussion on this idea and
it finds its way to GIMP Release soon. I would try to find some time to
help design the solution and I suspect a few others also from my workplace
could help with some ideas also.
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list