A little gimp plug-in written in python

2003 暑假的時候, 在Linuxer雜誌上看到一篇用perl寫GIMP外掛程式的範例, 覺得很有趣. 那時候剛開始接觸python. 那陣子常常需要處理照片, 要把一堆照片通通縮成統一的大小, 重複點來點去的動作, 實在作不太來. 於是我便開始想, 我能不能寫一個小小的外掛呼叫GIMP作這件工作?!(幸好我那時候還不知道ImageMagic).

後來上網找一下資料, 再自己實驗動手作一作. 花了一個下午的時間, 作了一個陽春的小外掛:

View post on imgur.com

//s.imgur.com/min/embed.js

它的功能是在指定的路徑下搜尋所有.jpg和.JPG的檔案, 將縮成指定的大小的圖另存成GIMP_開頭的檔案.

核 心觀念就是寫一個call_back函式跟GIMP註冊, 可以自由的運作python和gimpfu所提供的元件. 事隔兩年, 我已經有點忘記plug-in的式細節, 只記得用python來寫GIMP不僅不難, 而且相當有趣. 寫作的方式相當簡單, 不妨參照: Gimp Python Documentation
或是網路上提供的一些範例程式, 來試寫一個python的script. 再將他放進 $HOME/.gimp-2.0/plug-ins/裡重新啟動, 就可以完成有趣的plug-in開發.

Files:
A little plug-in written by Mat (not ready yet)

car loan death clause business plan format for restaurant macatawa bank home equity loan fastest way to send money online to someones bank account how to start your own blog and make money relative strength indicator forex selling things online to make money 3d daughter gangbang at dads poker game porn forex trading singapore forum is garlic good for erectile dysfunction how much money do app creators make how to ask relative for a loan full house poker highest hand erectile dysfunction in spanish the poker place hankinson casino hotel pai gow poker table layout how legitimate make a lot of money online how to pay an unpaid loan showing on credit score loan star motors humble tx make money with pickup truck citibank student loan number gamsat essay help online poker player tracker casino bus trip games ways to make a lot of money in college quicken loans advertising budget red rock casino images cialis peptide what is student loan interest on taxes

Leave a Reply

Your email address will not be published. Required fields are marked *