Recent

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

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #840 on: September 05, 2019, 09:44:30 pm »
Nice drawing.  :)

Vector version is coming soon. It seems that all bugs are fixed. Now we are making the binaries.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #841 on: September 06, 2019, 12:12:46 pm »
New version of LazPaint 7.0.5 (seems stable)
https://github.com/bgrabitmap/lazpaint/releases

This is an official release  :)
Conscience is the debugger of the mind

nouzi

  • Sr. Member
  • ****
  • Posts: 296
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #842 on: September 06, 2019, 12:48:31 pm »
Nice working
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #843 on: September 07, 2019, 09:15:49 pm »
Thanx  :)
Conscience is the debugger of the mind

jeffrey1820

  • Newbie
  • Posts: 2
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #844 on: October 05, 2019, 01:21:33 am »
Please fix an issue with the linear gradients of svg, which seems to be not painted, but it's only a size issue.

The issue is in "TSVGElementWithGradient.CreateCanvasLinearGradient(...)" and this code...
Code: [Select]
    p1.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p1.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
    p2.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p2.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
...should be...
Code: [Select]
    p1.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p1.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
    p2.x:= Units.ConvertWidth(g.x2,AUnit,w).value;  <- change here
    p2.y:= Units.ConvertHeight(g.y2,AUnit,h).value;  <- change here

After these changes the linear gradients will be painted as expected.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #845 on: October 05, 2019, 01:56:15 am »
Please fix an issue with the linear gradients of svg, which seems to be not painted, but it's only a size issue.

The issue is in "TSVGElementWithGradient.CreateCanvasLinearGradient(...)" and this code...
Code: [Select]
    p1.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p1.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
    p2.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p2.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
...should be...
Code: [Select]
    p1.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p1.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
    p2.x:= Units.ConvertWidth(g.x2,AUnit,w).value;  <- change here
    p2.y:= Units.ConvertHeight(g.y2,AUnit,h).value;  <- change here

After these changes the linear gradients will be painted as expected.

Reported in GitHub
https://github.com/bgrabitmap/lazpaint/issues/56

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #846 on: October 14, 2019, 04:00:09 pm »
New version of LazPaint 7.0.7. This is a recommended update from 7.0.6 as it contains a significant amount of bug fixes.
https://github.com/bgrabitmap/lazpaint/releases

Bug fixes
fix crop layer with offsets/small layers
fix bug with duplicating vectorial layer
fix undo of merging duplicate layers
avoid bugs with vector layers in certain cases
fix layer visibility update
update inactive layers with undo/redo
fix bugs when actions or tools interact
fixed opacity bar when layer stack is zoomed
update screen when changing workspace color
fix shift colors shortcut

General
show context menu when right-clicking upper toolbar unused space
faster saving of LZP files
handles external changes in multiimage files (TIFF, GIF, ICO) more gracefully
entry to duplicate current frame of GIF or TIFF
merge vector layers with vector layers
merge vector layers with other layers by transforming them into a rectangular shape
in color window, triangle cursors are clickable

Edit shape tool
update toolbar when selecting shape
space key allowed when editing existing text shape
transform background fill of rectangular shapes (in particular after merging raster and vector layers)
right click to rotate/shear a rectangular shape
avoid shape distortion when copying between layers with different transform
allow to clear/copy the whole layer if it is a gradient or a rotate image with Delete or Ctrl-C
more permissive selection of shape (one can click a few pixels away)

Polygon tool
holding SHIFT (along with Insert or I key) inserts new point on the segment
close shape when clicking first point (when polygon or curve is open)
Conscience is the debugger of the mind

c-sanchez

  • Jr. Member
  • **
  • Posts: 65
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #847 on: November 02, 2019, 01:31:13 am »

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #848 on: November 02, 2019, 01:42:48 am »
Download and try to open this image in LazPaint
https://github.com/crystal-bit/triple-triad-godot/blob/master/GameScenes/Battle/Textures/field.png

If I open it with mspaint and then save it as PNG, then open it with lazpaint works.

The file size differs BTW:
original file 2335kb
saved with mspaint 2573kb

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #849 on: November 02, 2019, 01:47:43 am »
Hi!

Lazpaint moans: "CRC check faild"

Gimp opens it with no issues.

Winni

c-sanchez

  • Jr. Member
  • **
  • Posts: 65
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #850 on: November 02, 2019, 05:39:29 am »
Quote from: winni
Hi!

Lazpaint moans: "CRC check faild"

Gimp opens it with no issues.

Quote from: lainz
If I open it with mspaint and then save it as PNG, then open it with lazpaint works.

The file size differs BTW:
original file 2335kb
saved with mspaint 2573kb

Yup, I have the same trouble, I think it will be interesting know what is the reason that fails on LazPaint.

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #851 on: November 02, 2019, 11:00:27 am »
Hi folks,

So the reason is that there is a chunk that has an invalid CRC. Though in this case, it is an ancillary chunk (= non essential). Thus it can be ignored.

On dev branch of BGRABitmap, I've updated the reader to simply skip in this case. It makes no difference in the image in this case.

Regards
Conscience is the debugger of the mind

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #852 on: November 02, 2019, 01:26:06 pm »
@ c-sanchez

So Photoshop delivers corrupt png files?

Am I right?

Winni

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #853 on: November 03, 2019, 12:34:11 am »
If there is no reply  then I am on my own:

Code: Bash  [Select][+][-]
  1. strings field.png | grep Photoshop
  2.  
result:

Code: Bash  [Select][+][-]
  1. Photoshop ICC profile

So: Yes, Photoshop delivers corrupt png files.

Winni


lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #854 on: November 03, 2019, 02:30:01 am »
how is the status of the lazpaint scripting with python?

 

TinyPortal © 2005-2018