Jump to content

Barnack

Newbies
  • Posts

    5
  • Joined

  • Last visited

Barnack's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Hi, i have an image with a black-ish dragon on a while background with a blue glow. Can i extract the black dragon somehow making any hint of blue become transparent so i don't get just a pure black pixelated result? What i tried is making the picture black/white, increasing contrast to make the blackish areas totally black (0, 0, 0), and removed all white with a certain tolerance. But the borders of the result still don't have opacity obviously, they retain shades of grey. Source: My result: Last time i had to do something similar i just put the picture back on an svg editor and remade it entirely making lines over it because i didn't know any alternative
  2. well i'm someone that hand wrote an interpreter for a subset of the C language as an hobby for a personal project until last week; and before writing that i considered using lua and read the documentation. Adding a lua interpreter to anything is easy, regardless of what it is. And as long as each effect from the gui ends up calling a function (which it should), then it's easily done. (although i hate lua's syntax, which is why i wrote a c-like interpreter… yep i'm crazy) 😂
  3. Honestly it's so easy to add these things with a lua interpreter that i'd do it myself if pdn was open source
  4. it's a feature suggestion, maybe it wasn't that clear😅 Wrong section for suggestions?
  5. Would it be possible to allow for command line usage of paint.net? It would let people automatize some kind of works through .bat scripts. An idea would be taking actions in order as arguments. The program called with files would still open it with said files, using command line tools would become more like a script, with actions as they appear in the menus. paint.net -cl < means paint.net will receive actions through command line with no need to open any window. open([file]) < list of files (or special characters) to be opened and apply all next actions to all opened files. It is required to have any file to perform actions on. open(*.jpg) < opens all jpg in current directory adjustments/black_and_white() < turns all images in black/white image/canvas_size(50%, top_left) < changes canvas size percentage image/canvas_size(50px, 60px, 30px/cm, top_right) < change canvas size by pixels with given resolution. If resolution is unspecified it will not be changed. image/canvas_size(30px/in, 10in, 5in, left) < change canvas size by in or cm with given resolution. If resolution is unspecified it will not be changed. help() < show help for specified command help(image) < shows list of options under image dropdown help(image/canvas_size) < shows the 3 possible sets of arguments i wrote before save_as([file]) < saves the file. If save_as is not specified, all opened files will be overwritten with the modifications applied. EXAMPLES: converting all jpg to png in a folder paint.net -cl open(*.jpg) save_as(*.png) turning all jpg files to brighter ones with 30*30px size paint.net -cl open(*.jpg) adjustments/brightness_contrast(65, 0) image/resize(best_quality, 30px, 30px) The syntax is just from my personal taste, anything else would do as long as it works and is readable Another option would be embedding a lua interpreter (although i HATE lua but nevermind) and make all the functions that are called through gui buttons available in script. It would take next to no time to add this to the gui mode (just script > call script, chose a .lua file, run it), and i think it wouldn't take long to add it as a command line argument either paint.net -script "myscript.lua"
×
×
  • Create New...