Recent

Author Topic: LazPaint (alpha-blending, antialiasing, filters)  (Read 650237 times)

pstein

  • New Member
  • *
  • Posts: 10
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1080 on: June 23, 2022, 11:13:05 am »
Hello, I am new to LazPaint and have some questions:

1.) How do I merge a just (with Strg+V) inserted image into base image?
2.) When I save a *.jpg image: Where can I define the compression ratio for JPG?
3.) Ok, I can scroll big images by dragging them. But occasionally I want to use scrollbars.
     How can I add these scrollbars to LazPaint Window?
4.) How can I close a certain image WITHOUT exiting whole LazPaint?

Thank you
« Last Edit: June 23, 2022, 11:21:09 am by pstein »

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1081 on: June 23, 2022, 09:37:49 pm »
Hello pstein

1) I suppose you refer to pressing Enter to merge the selection
2) When you save a JPG, an option window is shown with a bar where you can select the quality percentage
3) Scrollbars are not implemented yet. Not that you can scroll with any tool by keeping Space key pressed and the dragging with the mouse.
4) For now, the closest to that is to create a new image. It has been requested that images have their own tab: https://github.com/bgrabitmap/lazpaint/issues/101

Regards
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1082 on: August 06, 2022, 01:21:36 pm »
A new version of LazPaint is in testing. It is version 7.2:
https://github.com/bgrabitmap/lazpaint/releases/tag/v7.2
(list of all changes and binaries)

MacOS, Linux32 and Linux64 provided.
Win32 and Win64 zip files provided.
EDIT: Windows Install too provided

Compilation and installation
This version can be compiled on Lazarus 2.2.2, BGRABitmap 11.5.1 and BGRAControls 7.6.

On Linux and MacOS, you need to install libwebp and libavif if you want to use WEBP and AVIF file format.

Bug fixes and improvements
This version of LazPaint contains a lot of bug fixes and minor improvements, in particular:
- language: tool shortcuts for Cyrillic keyboard
- file: handle path in file textbox
- file: added quick save action (Ctlr-Q shortcut)
- file: experimental support for AVIF format
- SVG: close path when export as SVG
- tools: disambiguation of shortcut keys (Y, K, F and R)
- deformation grid tool: handle extreme deformation
- layer tools: delete current layer with DELETE key
- text tool: provide text style, bidi mode, vertical alignment in toolbar
- polygon/closed curve tools: hide center point when ALT key pressed
- selection tools: deselect when ESCAPE pressed and selection layer empty
- selection pen: show circular cursor
- filter: added negative angle for twirl

New key assignments
- Y : shaded shapes because next to U (rect/ellipse) and T (text)
- K : clone tool because similar sound
- F : select rect/ellipse because near D (rect/ellipse)
- R : swap color (R like reverse)

So here are all the key bindings (without Shift/Ctrl/Alt/Cmd)
Q      W      E       R     T      Y       U        I       O       P
       magic  eraser  swap  text   shaded  rect/    insert  select  drawing
       wand           color        shape   ellipse  point   pen     pen

A       S       D      F       G      H      J      K      L
auto    curved  poly/  select  flood  hand   edit   clone  polyline
vertex  vertex  curve  poly/   fill/         shape  tool
                       curve   grad/

Z       X       C       V       B      N      M
move    angle   color   select  brush  open   select
vertex  vertex  picker  move/          curve  rect/ellipse
                        rotate


Happy testing!  :)

Schedule
Testing period of 2 weeks: 6th August to 19th August

If everything ok, publication on GitHub and Website.
Pre-Debian publication of 2 weeks: 20th August to 2 September

If everything ok, official publication on Debian will start.

There may be other developments of features in parallel, that will then go through the same process.
« Last Edit: August 06, 2022, 05:41:05 pm by circular »
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1083 on: August 06, 2022, 04:43:59 pm »
Hi, I've added the setup for Windows and released BGRAControls v7.6

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1084 on: August 06, 2022, 05:40:26 pm »
Thanx!
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1085 on: August 21, 2022, 07:28:57 pm »
New test version 7.2.1
https://github.com/bgrabitmap/lazpaint/releases

MacOS, Linux32 and Linux64 provided.
Win32 and Win64 zip files provided.

Compilation and installation
This version can be compiled on Lazarus 2.2.2, BGRABitmap 11.5.2 and BGRAControls 7.6.

On Linux and MacOS, you need to install libwebp and libavif if you want to use WEBP and AVIF file format. On Windows, the DLLs are included.

Bug fixes and improvements
- adapt quick save shortcut on MacOS
- translations : German, Portuguese, Chinese, Dutch, Spanish
- added "-screenshot" command line
- libavif dll
- multi click on text (https://github.com/bgrabitmap/lazpaint/issues/266)
- fix in Python scripting (dialog.py)
- added "-editor" command line (https://github.com/bgrabitmap/lazpaint/pull/507)

Example of usage of new commands from terminal. Take screenshot of primary monitor, open editor to validate or not, and save to file.
Code: [Select]
lazpaint -screenshot 0 -editor [Window]ColorWindowVisible=0,LayerWindowVisible=0 screenshot.png
Schedule
Testing period of 2 weeks: 21th August to 3rd September

If everything ok, publication on GitHub (switch version to final) and Website.

Pre-Debian publication: starting soon.
If everything ok, official publication on Debian will start.
« Last Edit: August 21, 2022, 07:31:49 pm by circular »
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1076
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1087 on: May 30, 2023, 08:35:04 pm »
I remember that some apps had somthing called ALPHA. I am not sure what it is, but it was something different from Contrast and Brightness and it was usefull for dark images.
Coukd it be implemented in LazPaint?
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1088 on: May 31, 2023, 06:38:33 pm »
This is probably something like applying a power function.

Do you get something similar by using the Apply Function filter, going to the Lab tab and writing L^0.5 after "L =" ?
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1076
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1089 on: June 01, 2023, 08:55:41 am »
Now I start thinking that it might not be alpha, but gamma. If I am not wrong alpha is the transparency channel.

I tried L^0.5 and it looks like what I expected, so maybe that is it.

But there is a bug there - my system uses a comma as a decimal separator, but when I type it with a comma, the text box becomes red.
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1090 on: June 01, 2023, 11:49:46 am »
That is probably gamma indeed.

Ok so with a Python script it is doable to add this.

It is normal that the regional settings are ignored.
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1076
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1091 on: June 28, 2023, 02:46:56 pm »
...
It is normal that the regional settings are ignored.
If fpexprpars is used for that, you are welcome to press a thumb up in this feature request: 39351
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1092 on: June 29, 2023, 06:57:32 pm »
LazPaint does use fpexprpars, I will add the thumb up :)
Conscience is the debugger of the mind

Love

  • New Member
  • *
  • Posts: 18
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1093 on: July 27, 2023, 10:24:07 am »
Hello, I made folders of graphics resources for lazpaint which are free to use:

3d models library:
 https://drive.google.com/drive/folders/1vYYHwwwNE2ILNraPNj6jGjKSCYPsjfJ3?usp=sharing

It was possible because of https://quaternius.com/ . This website provided 3d models with CC0
license. So, thank you https://quaternius.com/ for your amazing work.

                                                                                                                 

images library(PNGs, SVGs and simple arts):
https://drive.google.com/drive/folders/1jEUoKyRNobEIc52rTbxxiNYM7Y7O03ve?usp=sharing

It was possible by free and opensource software , distributed under the terms of the GNU General Public License 'Tuxpaint' (https://tuxpaint.org/). Tuxpaint has optional installer named 'Rubber Stamp' which has PNGs and SVGs. So, Thank you https://tuxpaint.org/ and all who helped to make 'Rubber Stamps' images library.

I tried my best to make folder with different catagories by keeping simplicity and conciseness in mind. I hope this can add value to Lazpaint and its community.

Circular can you put this resources in your website after downloading and testing out?

Have a nice day.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1094 on: July 27, 2023, 11:36:58 am »
Wow thank you so much

I will have a look at size to see what I can include directly in the installation and otherwise how to provide the additional files (maybe additional download, browsing on line).  :)
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018