gimp

Linux那些事——GTK+, Qt, Gnome, KDE, xWindow, xOrg区别

≡放荡痞女 提交于 2020-04-29 03:14:45
Linux那些事——GTK+, Qt, Gnome, KDE, xWindow, xOrg区别 Linux不仅内核开源,系统配置也是高度可定制化的,其中就包括我们所熟知的图形界面,从桌面环境,主题,字体,Icon我们都可以通过修改Linux的配置文件来修改。这就是为什么我选择Linux的理由,高度的个性化。 用了8年多的Linux桌面发行版,一直没有好好研究一下linux的图形界面xwindow,今天拿出来好好整理一下,也希望对刚入门linux的童鞋有一定帮助。 首先Linux是个开源且自由的软件,他只是一个内核,这意味着我们可以对其任何细节,模块,内核进行高度的定制化。所谓的图形界面,是在Linux环境下的一套或者说一个软件,为Linux提供了图形界面的能力。这和windows的设计很不一样,windows是把图形界面作为必不可少的部分(内核),也就是windows的发布永远携带了图形界面,他和windows系统是一体的,对于linux来说,图形界面是个可有可无的软件而已,没有xwindow,linux是操作系统,有xwindow,linux还是个操作系统,当你安装上了这个xwindow,linux只是多了一个软件而已。 那么关于Linux的图形界面,有很多故事可以讲,这里就来区分一下这些专业的名词。 x Window Server 与 x协议 又被称为x11或者X

Plugins usually don't work, how do I debug?

扶醉桌前 提交于 2020-01-25 20:56:13
问题 I am trying to write a plugin that will create a bitmap font. However, this is very frustrating to learn... while I am not familiar with python, it is not that hard to pick up and have not had problems with it outside of GIMP. Copied some of the code from: https://github.com/sole/snippets/blob/master/gimp/generate_bitmap_font/sole_generate_bitmap_font.py and from http://gimpbook.com/scripting/ Does work: #!/usr/bin/env python # Hello World in GIMP Python from gimpfu import * def create_font

Batch convert DDS file to DDS without mipmaps

主宰稳场 提交于 2020-01-24 00:50:14
问题 I have a Mount & Blade: Warband mod called 1257 AD. The mod itself is great, but all the textures have to be resaved to remove mipmaps from dds files, to remove glitches on GNU/Linux. And of course, I could do this manually, but it will took a lot of time(over 2000 textures), and is there any way for gimp to just open and save the file without mipmaps. Also, last time I wanted to do this I used loop with Imagemagicks convert, but it kept mipmaps. So how do I do this kind of convert? 回答1: You

How to append to a file using Scheme?

穿精又带淫゛_ 提交于 2020-01-15 09:44:33
问题 I am using TinyScheme (actually Script-Fu in GIMP), and cannot find a good way to open a file and append a line of text to it. I am trying to log some info to the file for debugging, and transcript-on doesn't seem to be implemented... Right now I am scraping along by reading the entire file (one character at a time!), concatenating that into a string, concatenating my text to the end of that, then writing it all out to the file again. There must be a better way! 回答1: It's going to be

Android GIMP JPG to PPM conversion

放肆的年华 提交于 2020-01-05 02:33:20
问题 How exactly does GIMP convert a jpg into a ppm? I'm trying to convert a jpg to a ppm on Android. In Android I use the API to create an ARGB_8888 Bitmap of the jpg then drop the Alpha channel and throw the RGB values into a ppm. But I get different values for RGB from GIMP. 回答1: Have a look into the code. You can find it here: http://git.gnome.org/browse/gimp/tree/plug-ins/common/file-pnm.c 来源: https://stackoverflow.com/questions/4908635/android-gimp-jpg-to-ppm-conversion

GIMP batch editing (Script-fu/Python-fu)

纵然是瞬间 提交于 2020-01-03 03:37:29
问题 I have about 500 images, I would like edit all of them in batch, I need to resize them all at to 190x120 dimensions, position then slightly higher (say 10 pixels). And export. Also I would like them all to keep their initial names. Basically I have a frame and I would like to load images (on layer under it) then size them down (above dimensions) move slightly up and export each individual image with frame so that it keeps its name. What would be a command I could use in GIMP console (script

A way to convert PSD format to something Gimp can read

徘徊边缘 提交于 2020-01-02 04:46:07
问题 I have a bunch of PSD files (and more to come) and I want to get them into a format I can work with. I have had (some) success reading PSDs with Gimp before but these files won't read properly. Is there a way to convert PSDs to XCF? I have tried IrfanView which displays the PSDs alright but no conversion to Gimp's XCF. I read a (accepted) post on Yahoo Answers that says PNGs can support layers. Is this true? If so, how can I do this? 回答1: PNG is a bad choice as it won't support much of the

Explanation of Header Pixel in GIMP created C Header File of an XPM image

对着背影说爱祢 提交于 2019-12-31 01:25:53
问题 In GIMP, you're able to save an image as a C header file. I did so with an XPM file, which looks like the image below: If I were to save the XPM image as a C header file, GIMP will output this C header file. In order to process each pixel of the given image data, the header pixel is called repeatedly. What I don't understand is what the header pixel does to process the data in the first place. #define HEADER_PIXEL(data,pixel) {\ pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \

ImageMagick: Is there an equivalent of Gimp's tool to “shrink” and “grow” a selection?

狂风中的少年 提交于 2019-12-25 03:44:46
问题 I have a black and white mask image produced with this ImageMagick command: convert in.jpg -threshold 85% out.png Giving me this result: I'd like to reduce the size of each piece like if I was doing it with Gimp by selecting the white background, inverting the selection and shrink it by X pixels. Is it possible to do it with ImageMagick and if yes, how ? 回答1: In Imagemagick, you can use -morphology close to reduce the white holes in the black. But if you use too large a kernel size, it will

Where can I select my personal plugins in GIMP?

一世执手 提交于 2019-12-24 14:00:29
问题 I have been trying to run these sample scripts (specially helloworld.py and pytemplate.py ) to get the hang on using python code in GIMP. I'm specially interested in pytemplate.py which is intended to show how to do something over an existing image (hopefully, the current state of the image which has the focus) As far as I know, I have to place them in ~/.gimp-2.8/plug-ins/ (in my GIMP's personal folder) and give them run permissions ( chmod +x somescript.py ). The gimpfu.register() function