gimp

Exporting HTML/CSS with Inkspace or Gimp [closed]

狂风中的少年 提交于 2019-12-07 17:16:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Is it possible to design web pages using Inkspace or Gimp and export them as HTML/CSS? I want a solution where I design using drag/drop and don't have to write lots of HTML/CSS bu hand all the time I prefer using open source software For Gimp I found this, but not sure if this really works For Inkspace I found

Gimp Python plugin gimp.Image as numpy array

佐手、 提交于 2019-12-07 16:51:51
问题 I'm working on a python plugin for GIMP and I would like to obtain the RGB matrix of a layer as a numpy array. To access the layer in the python plugin I use the next code: def python_function(img, layer): layer = img.layers[0] I would like to make layer variable, instead of a gimp.Image variable, a numpy array containing, for each pixel, its RGB values. What I use in other nonGimp-python code is this next line: frame2 = misc.imread('C:\Users\User\Desktop\image2.png').astype(np.float32) . If

How to quickly know layer dimensions in Gimp?

末鹿安然 提交于 2019-12-07 07:57:18
问题 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! 回答1: 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

use gimp color-to-alpha script in a shell script

戏子无情 提交于 2019-12-07 07:42:54
问题 I am trying to reproduce the color-to-alpha function gimp offer, which adds a level of transparency depending on the amount of color in a pixel. The reason why I want to know how to use this function from a command line is to apply the function to many images in a single click without having to open each image one by one in gimp. To run a gimp script from terminal, the following line is used : /Applications/GIMP.app/Contents/MacOS/gimp -i -b followed by the name of the function and its

How to parse out base file name using Script-Fu

旧城冷巷雨未停 提交于 2019-12-07 01:05:44
问题 Using Gimp 2.6.6 for MAC OS X (under X11) as downloaded from gimp.org. I'm trying to automate a boring manual process with Script-Fu. I needed to parse the image file name to save off various layers as new files using a suffix on the original file name. My original attempts went like this but failed because (string-search ...) doesn't seem to be available under 2.6 (a change to the scripting engine?). (set! basefilename (substring filename 0 (string-search "." filename))) Then I tried to use

python-fu select copy paste

孤街浪徒 提交于 2019-12-06 13:31:54
I'm a newbie in python-fu, (my second day), so my question may seem naive: I'd like to select a rectangular portion from "r400r.png", rotate it 90 degrees, and save my selection in "r400ra.png". So far, I tried something on these lines: for fv in range(400,401): fn='r%sr.png' % fv img=pdb.gimp_file_load('/path/'+fn,fn) drw=pdb.gimp_image_get_active_layer(img) img1=pdb.gimp_image_new(1024,1568,0) lyr=pdb.gimp_layer_new(img1,1024,1568,0,'ly1',0,0) pdb.gimp_rect_select(img,10,200,1422,1024,2,0,0) drw=pdb.gimp_rotate(drw,0,1.570796327) pdb.script_fu_selection_to_image(img1,drw) f0=fn[:5]+'a'+fn[5:

GIMP Python-fu exporting file only exports transparent layer

可紊 提交于 2019-12-06 04:30:54
问题 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:

Inkscape - Not fully converting png into svg

烂漫一生 提交于 2019-12-05 20:36:53
I opened one PNG file in Inkscape and exported it as SVG. When I opened that file with notepad I came to know that the PNG file is embedded within it. If the conversion happened then the resulting file should have only SVG related tags. It shouldn't embed the image within it. Or Am I doing anything wrong. Note: Save as option also producing the same kind of file. I am using Inkscape version 0.48 in Windows 7 - 64 bit. A .png file is a raster image file. In order to convert it to a vector graphic based format like .svg and have it be "native" svg rather than an included image you are going to

Exporting HTML/CSS with Inkspace or Gimp [closed]

为君一笑 提交于 2019-12-05 20:19:07
Is it possible to design web pages using Inkspace or Gimp and export them as HTML/CSS? I want a solution where I design using drag/drop and don't have to write lots of HTML/CSS bu hand all the time I prefer using open source software For Gimp I found this , but not sure if this really works For Inkspace I found tutorial here , but this doesn't seem to export HTML/CSS from it Please share your experiences/ideas Thank you Learn to code, its the only way, there are so many WYSIWYG editors on the market that really dont do as good a job as the knowledge contained in a 4 inch thick HTML & CSS bible

A way to convert PSD format to something Gimp can read

若如初见. 提交于 2019-12-05 10:37:44
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? PNG is a bad choice as it won't support much of the PSD features... XCF is also a bad idea since even the GIMP developers don't recommend it since it is built