Jump to content
You must now use your email address to sign in [click for more info] ×

Bogdan

Members
  • Posts

    79
  • Joined

  • Last visited

Everything posted by Bogdan

  1. Yes! It crashes very often indeed! One thing I noticed is that, if I save the File, at the very beginning, chances of crashing get lower. So I start by Saving, most of the times, if I remember...
  2. Hi, As the title is saying, is it possible to turn selections into strokes? For example if I use Polygonal Free Hand selection, or the Flood Select tool with zero tolerance, can I get a Vector Stroke out of it? Or, to get vector Strokes and Fills from a raster image can I use Affinity Designer maybe? This is also known as Convert Selection to Vector Path and as far as I see from searching the web, can be done in other editing software. Thanks!
  3. @lacerto, thanks for looking into it. interesting study. I wander how Photoshop is doing it...? Reduce color pallet to a user defined set of colors. I don't remember. I played a little bit more with my stuff. Starts to become similar to the Instagram filters. One certain advantage is the speed. in 7 minutes I can have around 25 variations. And since there's no interpolation between pixels, each color can be selected with Select Sampled Color and readjusted.
  4. @iconoclast, This is not a question of preference. The reason why I do this is because I want to create stencils. So when you do graffiti stenciling you need to use the colors provided in the spray cans. You need to choose from their palette. So every layer of color needs to be CNC milled based on the colors that you chose, in some plywood. The more layers you have, the more expensive the artwork becomes to produce. SO it's like tailoring the end result according to budget and time.
  5. @iconoclast, honestly I don't know. That's why I wrote the script. There's no manual work involved . Input the desired colors and the image to be adjusted, and that's it. Wait 15 seconds and voila, done! p.s. Interesting also to see the color separation:
  6. Here's another example: Colors desired, 3: [209,190,61],[20,18,15],[194,79,35] (The computed image should only have those three colors, with the exact RGB values, as specified) Here's the result using my script:
  7. Thank you both @iconoclast, @lacerto, Honestly, at this point the best is to use my own Python script 😅 Here's one based on yayoi kusama , untitled painting from 1967. And btw, on a 640x854, it takes around 10-15 seconds to recompute the image on a custom palette. And I am a very bad computer programmer. I placed a request under Affinity Photo for Desktop. Maybe it will get implemented at some point.
  8. Here's another one with 10 colors from Pink Marylin of Andy Warhol. You get the idea, I need a precise number of colors and each and one of them specified. The gradient map is, well, a gradient. I'm aiming for fixed colors.
  9. This is not actually what i'm after... I want to specify a color palette manually. Here's another example, same image, interpolated on a palette of 4 colors took from Van Gogh's Starry Night:
  10. import numpy as np from PIL import Image #color palette from image https://colordesigner.io/color-palette-from-image list_of_colors = [[229,219,212],[56,46,56],[137,110,109],[112,110,119],[169,166,171],[48,93,152]] def closest(colors,color): colors = np.array(colors) color = np.array(color) distances = np.sqrt(np.sum((colors-color)**2,axis=1)) index_of_smallest = np.where(distances==np.amin(distances)) smallest_distance = colors[index_of_smallest] return smallest_distance im = Image.open('dune-2021.jpg') # Can be many different formats. pix = im.load() print ("images size = " + str(im.size)) # Get the width and hight of the image for iterating over nr_of_pixels=im.size[0]*im.size[1] current_pixel=0 array_colors = [] for y in range(0,im.size[1]): for x in range(0,im.size[0]): current_color = pix[x,y] # Get the RGBA Value of the a pixel of an image closest_color= closest(list_of_colors, current_color) array_colors.append(closest_color[0][0]) array_colors.append(closest_color[0][1]) array_colors.append(closest_color[0][2]) np_array = np.asarray(array_colors, np.uint8) np_array = np_array.reshape((im.size[1], im.size[0], 3)) print (np_array.shape) print (np_array) data = Image.fromarray(np_array) data.save('gfg_dummy_pic.png')
  11. Hi! Custom color palette conversion, similar to PNG export options, already available, or similar to Indexed Color Mode in Photoshop, or similar to GMIC-QT filter in GIMP. For each pixel in an image or layer: Calculate the the most similar color from a user-defined custom color palette. Replace the color of that pixel with that similar color. Thank you! P.S. initial discussion available here:
  12. @lacerto But still no custom color palette, no? I could never use this Gimp thing. Each time I tried it felt so under developed that I just gave up after a few minutes of testing. Affinity Photo is the closest thing to Photoshop, in general speaking.
  13. @thomaso yes, so it is possible, and it has been since windows 95 or something. I see no reason why not having this with a custom palette also. Yeah, this brings back a nostalgic vibe of old consoles and MSDos Games - @emmanuelp points out also. So, please implement!
  14. Every color from the initial image gets assigned one from the custom color palette, all pixels have to be computed. If the image has several layers, this color-palette transition could be applied to every layer. But blend modes (darken, multiply, etc.) should not be taken into account. The layer is computed as it is in the Normal state. Multi-thread is possible. Here is a Python code using numpy: https://stackoverflow.com/questions/54242194/python-find-the-closest-color-to-a-color-from-giving-list-of-colors?answertab=trending#tab-top
  15. Hi all, To put it in another way: For each pixel in the image: Calculate the the most similar color from my custom palette. Replace the color of that pixel with that similar color. Seems easy, no? Is this not implemented?
  16. Hi! For example: If I have an image in RGB 16777216 colors (255*255*255), is it possible to change to a custom color palette, of, lets say, only 100 custom colors? Thanks!
  17. Hi, Merge curves and separate curves should be placed together with the other actions... maybe. Easy to find this way. Thank you!
  18. You should definitely design and sell cool gift-cards. Best way to drag your friends into new software on Christmas! ;D
  19. Hi! Since Smart Mode for Pen is so useful it would be best to be able to save it as a Default mode. Thank you!
  20. Thank you @R C-R! Useful thing. For the Pen everything gets saved with the exception of the Mode. Which is actually kind of a pity because the Smart Mode is The Best ! (maybe as a future development?)
  21. Hello, Is it possible for Affinity Photo to remember the previous settings for the tools I'm using? For example: Pen tool: I always use a Cyan stroke of 1pt and Smart Mode. Each time I start Affinity Photo or open a new file, I have to make these settings again. Thank you!
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.