RSS/Atom feed Twitter
Site is read-only, email is disabled

How to import Photoshop .pat files?

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

12 of 12 messages available
Toggle history

Please log in to manage your subscriptions.

How to import Photoshop .pat files? otherwhirl 02 Jun 20:27
  How to import Photoshop .pat files? DJ 02 Jun 20:58
   How to import Photoshop .pat files? otherwhirl 02 Jun 21:24
    How to import Photoshop .pat files? DJ 02 Jun 22:33
     How to import Photoshop .pat files? Akkana Peck 03 Jun 05:41
      How to import Photoshop .pat files? Alec Burgess 03 Jun 07:49
       How to import Photoshop .pat files? DJ 03 Jun 08:34
       How to import Photoshop .pat files? Akkana Peck 03 Jun 20:18
        How to import Photoshop .pat files? Alec Burgess 04 Jun 04:15
         How to import Photoshop .pat files? Alec Burgess 04 Jun 05:35
      How to import Photoshop .pat files? DJ 03 Jun 08:13
      How to import Photoshop .pat files? Sven Neumann 03 Jun 09:21
2009-06-02 20:27:31 UTC (almost 15 years ago)
postings
3

How to import Photoshop .pat files?

Hi folks!

Can someone pllleeeasse tell me how to import these .pat files?

http://www.smashingmagazine.com/2009/02/12/the-ultimate-collection-of-free-photoshop-patterns/

Thanks! P.S.

I've already tried dropping them directly into the "pattern" folder for gimp but they don't even show up! Show I re-install Gimp?

DJ
2009-06-02 20:58:27 UTC (almost 15 years ago)

How to import Photoshop .pat files?

Hi,

Can someone pllleeeasse tell me how to import these .pat files? http://www.smashingmagazine.com/2009/02/12/the-ultimate-collection-of-free-photoshop-patterns/

I've already tried dropping them directly into the "pattern" folder for gimp but they don't even show up! Show I re-install Gimp?

Restart GIMP or "Refresh" Patterns.

Pressing this button causes GIMP to rescan the folders in your pattern search path, adding any newly discovered patterns to the list. This button is useful if you add new patterns to a folder, and want to make them available without having to restart GIMP. http://docs.gimp.org/2.6/en/gimp-pattern-dialog.html

2009-06-02 21:24:35 UTC (almost 15 years ago)
postings
3

How to import Photoshop .pat files?

Hi DJ,

Thanks for responding to my post (I Love the internet...)

So I tried that, but still NOTHING. Question, It IS with the bucket fill tool that I should be able to access the .pat files right?

I think I may have to re install, because I noticed the same thing when I try to access filters that I have downloaded. Even the Scrypt-Fu and Python-Fu filters, theres nothing in them
.

OW

Hi,

Can someone pllleeeasse tell me how to import these .pat files?

http://www.smashingmagazine.com/2009/02/12/the-ultimate-collection-of-free-photoshop-patterns/

I've already tried dropping them directly into the "pattern" folder for

gimp

but they don't even show up! Show I re-install Gimp?

Restart GIMP or "Refresh" Patterns.

Pressing this button causes GIMP to rescan the folders in your pattern search path, adding any newly discovered patterns to the list. This button is useful if you add new patterns to a folder, and want to make them available without having to restart GIMP. http://docs.gimp.org/2.6/en/gimp-pattern-dialog.html

DJ
2009-06-02 22:33:34 UTC (almost 15 years ago)

How to import Photoshop .pat files?

Hi,

So I tried that, but still NOTHING. Question, It IS with the bucket fill tool that I should be able to access the .pat files right?

Yes and no. There is also the Patterns Dialog (see more below).

I think I may have to re install, because I noticed the same thing when I try to access filters that I have downloaded. Even the Scrypt-Fu and Python-Fu filters, theres nothing in them.
OW

On the image window go to, Windows > Dockable Dialogs > Patterns. This is the Patterns Dialog.

In the Bucket Fill, as you mentioned, if you click the radio button next to "Pattern Fill" and then click the image, that is the Pattern List View. At the bottom right-hand side of the Pattern List View, if you click the bucket icon, it'll also bring up the same Patterns Dialog. Just two ways to get to the same spot.

If you have Edit > Preferences > Tool Options, "Paint Options Shared Between Tools", "Brush", "Pattern", and "Gradient" checked, then what you set in the Dialogs will be used by the Tools.

One of the things I realized about GIMP, a lot of things are drag-able. So you certainly can use the Bucket Fill tool with a pattern, but you can also just drag a pattern to the layer/selection.

I'm on Linux, and I've never had to reinstall GIMP for anything. I just put the Patterns in the gimp-2.6/patterns/some_name directory, and then do a "Refresh" (Circular arrows at the bottom of the Pattern Dialog) or just restart.

One other thing to check: Edit > Preferences > Folders > Patterns, the folder that you installed into should be listed.

I'm out of ideas after this :-)

Good luck. DJ

Can someone pllleeeasse tell me how to import these .pat files?

http://www.smashingmagazine.com/2009/02/12/the-ultimate-collection-of-free-photoshop-patterns/

I've already tried dropping them directly into the "pattern" folder for

gimp

but they don't even show up! Show I re-install Gimp?

Restart GIMP or "Refresh" Patterns.

Pressing this button causes GIMP to rescan the folders in your pattern search path, adding any newly discovered patterns to the list. This button is useful if you add new patterns to a folder, and want to make them available without having to restart GIMP. http://docs.gimp.org/2.6/en/gimp-pattern-dialog.html

Akkana Peck
2009-06-03 05:41:53 UTC (almost 15 years ago)

How to import Photoshop .pat files?

So I tried that, but still NOTHING. Question, It IS with the bucket fill tool that I should be able to access the .pat files right?

DJ writes:

Yes and no. There is also the Patterns Dialog (see more below).

[ lots more info about where to view your GIMP patterns, but not on how to import these particular patterns. ]

The problem in this case may be that a lot of those patterns on http://www.smashingmagazine.com/2009/02/12/the-ultimate-collection-of-free-photoshop-patterns/ aren't GIMP compatible. For instance, I tried the "animal prints" one, http://redheadstock.deviantart.com/art/Animal-Prints-PS-Patterns-37342057 and although it supposedly includes 18 patterns, I got a zip file that expanded to just one file, SS-animalprints-patterns.pat. If I put that file in ~/.gimp-2.6/patterns/ it's ignored, and if I try to open the file in GIMP I get "GIMP pattern plug-in could not open image". I get the same for the brick textures pattern.

Has GIMP's support of PS patterns changed? The animal print page says it should be compatible with GIMP 2.2.6+.

...Akkana

Alec Burgess
2009-06-03 07:49:30 UTC (almost 15 years ago)

How to import Photoshop .pat files?

I was following along as did Akana - I found two "Photoshop pattern files" one alleged to contain 162 patterns, the other 109 patterns.

Also found this plugin by Googling [use photoshop patterns in gimp]: http://registry.gimp.org/node/10879#comment-872 I needed the windows version noted in the comments: http://registry.gimp.org/node/11003 (by schumaml -October 30, 2008)

With the EXE dropped in my plugins folder and after restarting GIMP I can now open the .PAT PS-pattern files by drag and drop from Windows Explorer. They are opened as a multiple layer file (apparently one layer per pattern).

I now need to write out all layers as individual GIMP .pat files .... As an experiment I dragged one of the layers to a new image and did [Image-Autocrop], then [Save as ...] into the Patterns folder (actually a subfolder thereof) as testpattern.pat (it exports, requests flattening and a name)

After refreshing Gimp patterns - the saved pattern *IS* available in the Patterns dialog - YIPPEE!

To get them created individually it looks like [Filters-Animation-Save Layers] does the trick. If renumbering make sure to include enough ~'s to cover total number of pattern files being written and specify an extension] eg:
"/devart_PS_pats_~~~.pat" (If insufficient ~'s in the file-spec an error is generated. This is "script-fu-save-anim-layers" by Saul Goode 3/11/2008 - not sure if it "came-with" GAP or I got it somewhere else?

Ok ... this "sort-of" worked :-( I've now got 162 files in my sub-folder of patterns directory (each 2.0 MB) and when I do refresh in pattern dialog all these appear to be loaded. I do get an error showing in the error console: "Failed to load data: Failed to open file 'D:\Data Files\Gimp-2.x_resources\patterns\Photoshop patterns - converted\ademmm.deviantart.com': Permission denied"

I'm not sure whether above error really "matters" - I got the same error on my manually created pattern described above ...

However ... the patterns created don't seem to be the individual layers - they are all sized 526x1024 and contain multiple images - what you would see if you merged visible with (I think) one fewer layers visible each time.

Any suggestions as to how to get the job finished? ie. each layer needs to be cropped I think.
I guess this needs a new script or tweaks to Saul Goode's "script-fu-save-anim-layers" but unfortunately I have zero ability in that area.

I've include the source of "script-fu-save-anim-layers"below my sig in case its helpful ...

Akkana Peck (akkana@shallowsky.com) wrote (in part) (on 2009-06-02 at 23:41):

DJ writes:
> > Yes and no. There is also the Patterns Dialog (see more below). [ lots more info about where to view your GIMP patterns, but not on how to import these particular patterns. ]

The problem in this case may be that a lot of those patterns on

http://www.smashingmagazine.com/2009/02/12/the-ultimate-collection-of-free-photoshop-patterns/

aren't GIMP compatible. For instance, I tried the "animal prints" one, http://redheadstock.deviantart.com/art/Animal-Prints-PS-Patterns-37342057 and although it supposedly includes 18 patterns, I got a zip file that expanded to just one file, SS-animalprints-patterns.pat. If I put that file in ~/.gimp-2.6/patterns/ it's ignored, and if I try to open the file in GIMP I get "GIMP pattern plug-in could not open image". I get the same for the brick textures pattern.

Has GIMP's support of PS patterns changed? The animal print page says it should be compatible with GIMP 2.2.6+.

DJ
2009-06-03 08:13:16 UTC (almost 15 years ago)

How to import Photoshop .pat files?

Hi,

So I tried that, but still NOTHING. Question, It IS with the bucket fill tool that I should be able to access the .pat files right?

The problem in this case may be that a lot of those patterns on http://www.smashingmagazine.com/2009/02/12/the-ultimate-collection-of-free-photoshop-patterns/ aren't GIMP compatible. For instance, I tried the "animal prints" one, http://redheadstock.deviantart.com/art/Animal-Prints-PS-Patterns-37342057 and although it supposedly includes 18 patterns, I got a zip file that expanded to just one file, SS-animalprints-patterns.pat. If I put that file in ~/.gimp-2.6/patterns/ it's ignored, and if I try to open the file in GIMP I get "GIMP pattern plug-in could not open image". I get the same for the brick textures pattern.

Disclaimer, I have not tried any of this (in great detail) :-) This is all new to me too.

The short answer: Check out: http://registry.gimp.org/node/10879

It looks like, as you noticed, that a Photoshop .pat may contain multiple layers. Those layers can be saved as individual Gimp patterns. The install of this plug-in will add a "file type" of "Photoshop Pattern" in the Open Dialog.

Longer answer: Text below is Italian. I used Google to translate to English.

Use the pattern of Photoshop with Gimp May 3rd, 2009

Although the patterns (reasons) of Photoshop have the same extension of the Gimp (. Pat) can not always use them.

I believe this is due to the fact that the format of the patterns of PS is more complex than could have within it images of different sizes. In order to use the same patterns for Photoshop on the net can now install the plugin Photoshop Pattern Loader. This plugin once installed enables you to upload patterns in GIMP as if it were an image.

Using the pattern
...
http://translate.google.com/translate?hl=en&sl=it&u=http://www.volalibero.it/gimp/gimp_-_plug-_e_script-fu/usare_i_pattern_di_photoshop_con_gimp&ei=aQ4mSrGdKqiGtgOd-aGgBg&sa=X&oi=translate&resnum=8&ct=result&prev=/search%3Fq%3Dps-pat-load_1%26hl%3Den

Photoshop pattern loader: Load Photoshop PAT patterns set as image in GIMP. http://www.techzilo.com/download-free-gimp-plugins/

DJ
2009-06-03 08:34:42 UTC (almost 15 years ago)

How to import Photoshop .pat files?

Hi,

Any suggestions as to how to get the job finished? ie. each layer needs to be cropped I think.

A potential option requires 3 steps:

Open the pattern file. Photoshop Pattern Loader
http://registry.gimp.org/node/10879 (Located: file type, Photoshop Pattern under Open Dialog)

Split the pattern layers into separate files. Video > Split Image to Frames (Is this Gimpu GAP?)

Crop the images in the above output files. David's Batch Processor to Crop the photos in batch. Make sure you visit the tabs: Input, Output, and Rename, and also the action you want to perform in batch (i.e., Crop 200x200?). http://members.ozemail.com.au/~hodsond/dbp.html (Located: Filters > Batch Process)

Sven Neumann
2009-06-03 09:21:16 UTC (almost 15 years ago)

How to import Photoshop .pat files?

Hi,

On Tue, 2009-06-02 at 20:41 -0700, Akkana Peck wrote:

The problem in this case may be that a lot of those patterns on http://www.smashingmagazine.com/2009/02/12/the-ultimate-collection-of-free-photoshop-patterns/ aren't GIMP compatible. For instance, I tried the "animal prints" one, http://redheadstock.deviantart.com/art/Animal-Prints-PS-Patterns-37342057 and although it supposedly includes 18 patterns, I got a zip file that expanded to just one file, SS-animalprints-patterns.pat. If I put that file in ~/.gimp-2.6/patterns/ it's ignored, and if I try to open the file in GIMP I get "GIMP pattern plug-in could not open image". I get the same for the brick textures pattern.

Has GIMP's support of PS patterns changed? The animal print page says it should be compatible with GIMP 2.2.6+.

GIMP doesn't have any code to open Photoshop pattern files. It can read the GIMP .pat format (which is not compatible to the PS one) and it can read patterns in some common image formats, such as PNG, GIF and JPEG (actually all formats supported by the gdk-pixbuf library).

GIMP can open some Photoshop brushes (.abr) directly, so perhaps there is some confusion here due to this.

Sven

Akkana Peck
2009-06-03 20:18:18 UTC (almost 15 years ago)

How to import Photoshop .pat files?

Alec Burgess writes:

To get them created individually it looks like [Filters-Animation-Save Layers] does the trick. If renumbering make sure to include enough ~'s to cover total number of pattern files being written and specify an extension] eg:
"/devart_PS_pats_~~~.pat" (If insufficient ~'s in the file-spec an error is generated. This is "script-fu-save-anim-layers" by Saul Goode 3/11/2008 - not sure if it "came-with" GAP or I got it somewhere else?

Ok ... this "sort-of" worked :-(

[ ... ]

Any suggestions as to how to get the job finished? ie. each layer needs to be cropped I think.
I guess this needs a new script or tweaks to Saul Goode's "script-fu-save-anim-layers" but unfortunately I have zero ability in that area.

Okay, done. I started with save-anim-layers, but then during the course of simplifying it to deal only with patterns I ended up rewriting pretty much the whole thing.

http://shallowsky.com/software/gimp/save-pat-layers.scm

It still registers in Animation, as "Save layers as patterns". Animation isn't the right place for it but it wasn't obvious what would be better. Any thoughts?

Start with the original multi-layer image and run Animation-> Save layers as patterns, and it will save each of the layers to your GIMP profile patterns directory with the appropriate layer name. I've only tested it on one pattern (the animal one) but it seems to work.

It does change the original image -- the layers stay autocropped, I didn't bother to try to revert them since I figure most people will just be closing that image anyway.

I'll put it on the registry after I get feedback on whether it's working okay for anyone besides myself. I'd especially like to hear whether it works on Windows, since it builds up paths with "/" (which I think script-fu is supposed to translate automatically).

...Akkana

Alec Burgess
2009-06-04 04:15:06 UTC (almost 15 years ago)

How to import Photoshop .pat files?

Akkana Peck (akkana@shallowsky.com) wrote (in part) (on 2009-06-03 at 14:18):

Any suggestions as to how to get the job finished? ie. each layer needs

to be cropped I think.
I guess this needs a new script or tweaks to Saul Goode's "script-fu-save-anim-layers" but unfortunately I have zero ability in that area.

Okay, done. I started with save-anim-layers, but then during the course of simplifying it to deal only with patterns I ended up rewriting pretty much the whole thing.

http://shallowsky.com/software/gimp/save-pat-layers.scm

works for me on Windows with both 2.6.6 and 2.7

It still registers in Animation, as "Save layers as patterns". Animation isn't the right place for it but it wasn't obvious what would be better. Any thoughts?

Maybe both Saul's [Save layers as ...] and your [Save layers as patterns] would be more discoverable on the layers menu?

Start with the original multi-layer image and run Animation-> Save layers as patterns, and it will save each of the layers to your GIMP profile patterns directory with the appropriate layer name. I've only tested it on one pattern (the animal one) but it seems to work.

It does change the original image -- the layers stay autocropped, I didn't bother to try to revert them since I figure most people will just be closing that image anyway.

I'll put it on the registry after I get feedback on whether it's working okay for anyone besides myself.

YES

I'd especially like
to hear whether it works on Windows, since it builds up paths with "/" (which I think script-fu is supposed to translate automatically).

The location is correctly created for me - GOOD! I think some way for user to specify a tag will for all patterns created will be useful after 2.7 gets released maybe this can be re-visited then? (If you want to avoid requiring any user interaction perhaps the file name?)

Note: so that I can keep track of where my "special" patterns came from and so that all resources can be shared with all installed versions of GIMP I've been putting them in sub-folders of ...\patterns. ie. in Preferences-folders-patterns I've added:

D:\Data Files\Gimp-2.x_resources\patterns and as subfolders of that:

D:\Data Files\Gimp-2.x_resources\patterns\added_manually (a couple I created manually)
D:\Data Files\Gimp-2.x_resources\patterns\ademmm.deviantart (from the PS PAT file via Akkana's script 162 *.pat files) D:\Data Files\Gimp-2.x_resources\patterns\squidfingers (from the PS PAT file via Akkana's script 109 *.pat files)

@Sven ... is following a bug? @anyone ... can someone confirm on a Unix system.
happening on both 2.6.6 and 2.7

when I refresh patterns (in Pattern toolbox dialog) it gets done "correctly" ie. reads each sub-folder of paths specified in Preferences ... Patterns and makes them available for use but for each sub-folder a message like following appears in Error Console (ie. the one available for display in the toolbox window or as a freestanding dialog)

GIMP Error Failed to load data:

Failed to open file 'D:\Data Files\Gimp-2.x_resources\patterns\added_manually': Permission denied

GIMP Error Failed to load data:

Failed to open file 'D:\Data Files\Gimp-2.x_resources\patterns\ademmm.deviantart': Permission denied

GIMP Error Failed to load data:

Failed to open file 'D:\Data Files\Gimp-2.x_resources\patterns\squidfingers': Permission denied

On 2.7 where the DOS-console is automatically started by GIMP similar messages appear during startup.

Alec Burgess
2009-06-04 05:35:28 UTC (almost 15 years ago)

How to import Photoshop .pat files?

Followup re Akkana's script: a minor niggle ...

I had created this environment variable: GIMP2_DIRECTORY=D:\Data Files\Gimp-2.x_resources\@gimp_settings_all_versions Your script is creating the patterns in that location in subfolder + patterns ie.
D:\Data Files\Gimp-2.x_resources\@gimp_settings_all_versions\patterns but I had not changed Preferences-File folders-Patterns to point explicitly to that location.

ie the gimprc file which gets used by GIMP at startup: D:\Data Files\Gimp-2.x_resources\@gimp_settings_all_versions\gimprc includes these lines:

* (pattern-path "D:\\Data Files\\Gimp-2.x_resources\\patterns;C:\\Documents and Settings\\Alec\\.gimp-2.6\\patterns;D:\\Program Files\\GIMP-2.0\\GIMP2.6.6\\share\\gimp\\2.0\\patterns") * (pattern-path-writable "D:\\Data Files\\Gimp-2.x_resources\\patterns;C:\\Documents and Settings\\Alec\\.gimp-2.6\\patterns")

The point is that in your script you concatenate "/patterns" to contents of GIMP2_DIRECTORY with (I think) the line (path (string-append gimp-directory "/patterns/")) but in fact that location does *NOT* automatically get used by GIMP-internals to find location of patterns.

Note that in the gimprc extract above (originally created by the installer I guess) it still points to: C:\\Documents and Settings\\Alec\\.gimp-2.6\\patterns which for MOST users who have not set GIMP2_DIRECTORY would be where (path (string-append gimp-directory "/patterns/")) points.

I'm not sure whether there is a way for script-fu to get the contents of the gimprc(?) - technically I think it "ought" to offer the user a chance to select in which of the "authorized" writable folders (or possibly in a user specified sub-folder thereof) it will create the patterns.

Alec Burgess (buralex@gmail.com) wrote (in part) (on 2009-06-03 at 22:15):

I'd especially like

> to hear whether it works on Windows, since it builds up paths with > "/" (which I think script-fu is supposed to translate automatically).
The location is correctly created for me - GOOD! I think some way for user to specify a tag will for all patterns created will be useful after 2.7 gets released maybe this can be re-visited then? (If you want to avoid requiring any user interaction perhaps the file name?)

Note: so that I can keep track of where my "special" patterns came from and so that all resources can be shared with all installed versions of GIMP I've been putting them in sub-folders of ...\patterns.
ie. in Preferences-folders-patterns I've added:

D:\Data Files\Gimp-2.x_resources\patterns and as subfolders of that:

D:\Data Files\Gimp-2.x_resources\patterns\added_manually (a couple I created manually)
D:\Data Files\Gimp-2.x_resources\patterns\ademmm.deviantart (from the PS PAT file via Akkana's script 162 *.pat files) D:\Data Files\Gimp-2.x_resources\patterns\squidfingers (from the
PS PAT file via Akkana's script 109 *.pat files)