gimp

How to quickly know layer dimensions in Gimp?

萝らか妹 提交于 2019-12-05 10:35:30
Every time I want to know the layer dimensions in Gimp, I open the "Scale layer" dialog to get it. Is there a better way to know this at a glance? May be some configuration option to show it at the bottom/right of the layer name, or in the bottom bar... Maybe this could be a Gimp feature request? Thank you! GIMP does have ways to configure the status bar (on prefences, image windows, title and status) - but there is currently no way to display the layer size - It can be made a feature request - on one hand it is an easy task, and someone starting to trying to collaborate with the project might

OpenCV's Sobel filter - why does it look so bad, especially compared to Gimp?

梦想的初衷 提交于 2019-12-04 23:34:09
问题 I'm trying to rebuild some preprocessing I have done before in Gimp, using OpenCV. The first stage is a Sobel filter for edge detection. It works very well in Gimp: Now here is my attempt with OpenCV: opencv_imgproc.Sobel(/* src = */ scaled, /* dst = */ sobel, /* ddepth = */ opencv_core.CV_32F, /* dx = */ 1, /* dy = */ 1, /* ksize = */ 5, /* scale = */ 0.25, /* delta = */ 0.0, /* borderType = */ opencv_core.BORDER_REPLICATE) It looks very bad, basically highlighting points instead of contours

SSE图像算法优化系列三十:GIMP中的Noise Reduction算法原理及快速实现。

橙三吉。 提交于 2019-12-04 19:50:52
  GIMP源代码链接: https://gitlab.gnome.org/GNOME/gimp/-/archive/master/gimp-master.zip   GEGL相关代码链接: https://gitlab.gnome.org/GNOME/gegl/-/archive/master/gegl-master.zip   最近因为要研究下色温算法,顺便下载了最新的GIMP软件,色温算法倒是找到了(有空单独来讲下),也顺便看看GIMP都有些什么更新,嗯,更新还是蛮多的,界面UI上有很多改动,有些已经改的面目全非了。随便瞄了一下Enhance菜单,发现里面有一个Nosie Reduction算法,试了下,还有点效果。于是在github上下载了GIMP的源代码,可是在源代码里搜索相关的关键词确没有发现任何的相关代码,后来才发现很多东西都有个GEGL关键词,结果一百度,原来他是一个单独的软件包,于是有下载了GEGL的源代码,终于在gegl-master\operations\common\里面看到了noise-reduction.c文件。   其核心的代码如下: static void noise_reduction (float *src_buf, /* source buffer, one pixel to the left and up from the starting

打造一个创客专用的UbuntuKylin版本-UMaker

岁酱吖の 提交于 2019-12-04 12:44:30
创客经常要干的事情都是从无到有,都将经历一个从创意、草图到模型、实体,然后电子电路开发、软件设计、作品集成这样一个完整的过程,才能将最初的创意实现出来,这里收集的软件包括:1、二维设计,2、三维设计与数字建模,3、3D打印控制软件,4、GIS地图与空间数据处理,5、机器人操作系统,6、开源硬件平台与软件工具集。这些工具基本能够满足准专业级别的软硬件融合的智能产品开发的需要,而且是完全免费、开源的。 最近做的一些东西,用到很多工具,有时候虚拟机出问题需要重装,消耗大量的时间。以前还有一些版本不太兼容,就放到了多个虚拟机里,但使用起来还是不方便,就产生了一个想法,把各种常用的工具放到一个操作系统的版本之中,做一个专用的操作系统版本。使用UbuntuKylin15.04,马上开干。 涉及到的软件全部为开源软件,包括二维设计、三维设计、3D打印、GIS、机器人操作系统等等。安装过程如下(工程浩大,一步步验证,遇到问题会把攻略记录下来,供大家参考): 1、二维设计 1.1、Inkscape,矢量绘图软件 这个主要做前期创意的记录和草图绘制。 # sudo add-apt-repository ppa:inkscape.dev/stable sudo apt-get install inkscape 1.2、GIMP,影像处理软件 媲美PhotoShop的开源影像处理软件。需要拍一些照片

Save as on multiple files at once (GIMP)

試著忘記壹切 提交于 2019-12-04 12:32:40
I have a series of .xcf images which I want to save as .png . I can open each file and save as .png but since there are a lot of images it would take a fair amount of time. Is there a way to convert all images at once, or another way I have to spent less time on this job? Thank you in advance. I'd use the Python console inside GIMP for that - if you happen to be in Windows, take a look on how to install the Python extension for GIMP 2.6 (on Linux it either comes isntalled or is a matter of installing the gimp-python package, probably the same on Mac OS) From within GIMP's Python console you

GIMP Python-fu exporting file only exports transparent layer

浪尽此生 提交于 2019-12-04 11:21:45
I am having issues saving images in python via GIMP. I can get the image and apply the effects I want, but when I go to save, it only saves one layer and not everything (NOTE: The background is transparent) and because the background is transparent, I cannot get it to save anything besides the transparent background. The code I am using is posted below: image_array = gimp.image_list() i=0 for image in image_array: img = image_array[i] layers = img.layers last_layer = len(layers)-1 try: disable=pdb.gimp_image_undo_disable(img) pdb.gimp_layer_add_alpha(layers[0]) drw = pdb.gimp_image_active

How to use GIMP inside a Python script?

女生的网名这么多〃 提交于 2019-12-04 10:51:17
问题 GIMP enables you to make plugin in in Python, what I would like to do is to call GIMP function like I would do inside one of this plugin but this return the following error since GIMP doesn't find any running GIMP Core to use. LibGimpBase-ERROR **: gimp_wire_write_msg: the wire protocol has not been initialized aborting... I would like to know if it's possible ? And if yes, how ? Thanks 回答1: GIMP's Python extensions need to be run from inside a GIMP instance. If you want to use GIMPś API from

How do I convert images (PSD, AI and EPS) to PDF?

霸气de小男生 提交于 2019-12-03 16:21:01
Customers of my Django site can upload a print design in: PDF, PSD, AI and EPS. If the filetype they upload is not PDF I want to convert it to PDF. So my question is: How do I convert Photoshop, Illustrator and CorelDraw files to PDF (programmatically)? I tried UniConvertor but it: does not support PSD, distorted my AI inputs, and rejected my EPS inputs . Know any workarounds? I am open to running separate scripts for each filetype. I googled "psd to pdf" but the results all looked like spam. (It seems image conversion is a cottage industry.) Ideally I want open-source but I will take what I

Converting XCF and other files using command line with GIMP?

谁说我不能喝 提交于 2019-12-03 12:08:34
问题 If I have an XCF file (or any other supported by Gimp) how can I convert it to, for example, PNG for display or further processing? 回答1: I'm a couple of years late, but I thought I'd add what I think is by far the best solution: there is a tool suite called Xcftools (on Ubuntu, apt-get install xcftools ), which has a utility called xcf2png that does this job perfectly. xcf2png image.xcf -o image.png This is much better than a) using ImageMagick (which as I said in a comment above is horribly

How do I save (export) all layers with gimp's script fu?

南楼画角 提交于 2019-12-03 06:37:50
With gimp fu, I can save the content of one layer (at least, that is how I interprete the definition of gimp_file_save because it takes the parameter drawable ). Now, I have the following script: from gimpfu import * def write_text(): width = 400 height = 100 img = gimp.Image(width, height, RGB) img.disable_undo() gimp.set_foreground( (255, 100, 20) ) gimp.set_background( ( 0, 15, 40) ) background_layer = gimp.Layer( img, 'Background', width, height, RGB_IMAGE, 100, NORMAL_MODE) img.add_layer(background_layer, 0) background_layer.fill(BACKGROUND_FILL) text_layer = pdb.gimp_text_fontname( img,