Recent

Author Topic: Lazzy Image Viewer  (Read 6092 times)

domasz

  • Hero Member
  • *****
  • Posts: 551
Lazzy Image Viewer
« on: June 03, 2024, 05:10:49 pm »
Something from my drawer - an image viewer with full source code.
Reads ~100 image formats, saves to 14 image formats, has some filters and such.
« Last Edit: June 03, 2024, 05:15:14 pm by domasz »

Roland57

  • Sr. Member
  • ****
  • Posts: 475
    • msegui.net
Re: Lazzy Image Viewer
« Reply #1 on: June 04, 2024, 05:14:58 am »
Thank you for sharing.

FYI, I could compile it under Linux (after removing a reference to ShellAPI). But the images are not displayed properly, as you can see in the attached screenshot.
My projects are on Gitlab and on Codeberg.

domasz

  • Hero Member
  • *****
  • Posts: 551
Re: Lazzy Image Viewer
« Reply #2 on: June 04, 2024, 08:49:21 am »
Thanks for testing!
The app stores images in memory in 32bit BGRA format which is what Windows whats. I am not sure what Linux wants. ARGB?

Roland57

  • Sr. Member
  • ****
  • Posts: 475
    • msegui.net
Re: Lazzy Image Viewer
« Reply #3 on: June 04, 2024, 01:09:10 pm »
I am not sure what Linux wants. ARGB?

No idea.
My projects are on Gitlab and on Codeberg.

domasz

  • Hero Member
  • *****
  • Posts: 551
Re: Lazzy Image Viewer
« Reply #4 on: June 04, 2024, 04:00:00 pm »
Below is an updated file for Linux. Works also on Windows. On Linux it used Pixels to copy from my custom bitmap format to TBitmap so it's not super fast but at least works.
« Last Edit: June 04, 2024, 08:43:58 pm by domasz »

Roland57

  • Sr. Member
  • ****
  • Posts: 475
    • msegui.net
Re: Lazzy Image Viewer
« Reply #5 on: June 04, 2024, 11:11:07 pm »
Yes it works here too.Thanks!
My projects are on Gitlab and on Codeberg.

domasz

  • Hero Member
  • *****
  • Posts: 551
Re: Lazzy Image Viewer
« Reply #6 on: June 06, 2024, 01:02:56 pm »
Version 0.2
Now can save to 50 formats.

Should compile fine under Windows and Linux, not sure about MacOS.

domasz

  • Hero Member
  • *****
  • Posts: 551
Re: Lazzy Image Viewer
« Reply #7 on: June 08, 2024, 02:26:21 pm »
Version 0.3 of
The Best Ever Image Viewer!!!111

All suggestions are welcome! Any criticism is welcome as well.

Needs no special packages. Just open  "project.lpr" and compile.

AlexTP

  • Hero Member
  • *****
  • Posts: 2478
    • UVviewsoft
Re: Lazzy Image Viewer
« Reply #8 on: June 08, 2024, 04:08:14 pm »
>All suggestions are welcome!
Suggestion: create Github or GibLab page for the program. To not upload it here each time.

440bx

  • Hero Member
  • *****
  • Posts: 4727
Re: Lazzy Image Viewer
« Reply #9 on: June 08, 2024, 04:28:48 pm »
Suggestion: create Github or GibLab page for the program. To not upload it here each time.
That's reasonable but, it ends up adding assets (desirable programs) to Github/Gitlab.

I think that one of the ways to promote FPC and Lazarus is to have a good trove of programs available only here in the forums.

What I would really like to see is a way of searching forum posts by those which have an attachment.  That would make it a lot easier to find interesting attachments.  Repos definitely have that over the forums here.  I think that would have the potential to bring new users to Lazarus/FPC.

(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Handoko

  • Hero Member
  • *****
  • Posts: 5374
  • My goal: build my own game engine using Lazarus
Re: Lazzy Image Viewer
« Reply #10 on: June 09, 2024, 01:37:54 pm »
I am busy,  do not have much time for other websites but I visit this forum regularly. So +1 for 440bx.

domasz

  • Hero Member
  • *****
  • Posts: 551
Re: Lazzy Image Viewer
« Reply #11 on: June 10, 2024, 11:11:25 pm »
Version 0.4

AlexTP

  • Hero Member
  • *****
  • Posts: 2478
    • UVviewsoft
Re: Lazzy Image Viewer
« Reply #12 on: June 14, 2024, 07:17:39 am »
The indent of centered pic is not equal on top and on bottom. You can see it if you resize the window to smaller size.

Indent on left/right - maybe not equal too.

The IDE names of TMenuItems are bad: MenuItem1, MenuItem2, MenuItem3. Need good names for code reading.
« Last Edit: June 14, 2024, 07:25:34 am by AlexTP »

domasz

  • Hero Member
  • *****
  • Posts: 551
Re: Lazzy Image Viewer
« Reply #13 on: June 14, 2024, 11:47:40 pm »
Thank you, AlexTP!
I will fix that!

domasz

  • Hero Member
  • *****
  • Posts: 551
Re: Lazzy Image Viewer
« Reply #14 on: June 15, 2024, 09:35:49 pm »
Version 0.5

- what AlexTP mentioned is fixed
- 9 more encoders
- some fixes and improvements in decoders

 

TinyPortal © 2005-2018