Page 1 of 2

PureViewer

Posted: Sun Sep 13, 2015 5:12 pm
by dobro
I decided to make me a picture Viewer Purebasic
here PureViewer

Image

he agrees to be launched from Windows "Open With ..."
and thus by double clicking on an image
he agrees to be launched in Stand Alone

it accepts Drag and Drop images on its window
it can load an image from the button


the window of the buttons to cycle Observed Folder images

transition: window / fullscreen with [Return]
keyboard keys [<-] and [->] to cycle images

in window mode, you can change the size and placement is recorded in output prg

in fullscreen mode, the [+] and [-] zoom
keys and numeric keypad
[4] to displacement right
[6] to go left
[2] to go down
[8] to go to the top


[R] and [L] = Rotate 90 °
[V] and [H] = Flip horizontal or Vertical

any time you can view changet (fullScreen / window) with [return]
and change images [<-] and [->]

if we arrive at the end of the images in the folder, it goes again to the first
if you come to the first, it starts at the end ...


the position and size of the window its saved
resizing of the window, changes the size of the image

the Code :


Last Edition : 19/02/2016 14:22

le code the code is now too big
here is the link for the download
http://michel.dobro.free.fr/download.php?view.54

Pureviewer opens the following files :

images PC :
BMP,TGA,JPG,PNG,TIFF,GIF,DDS(MiLoo), PCX

Film PC:
GIF Anim,MPG,AVI anim,DIVX

images Amiga
IFF


images Atari
PI1,PI2,PI3,PC1,PC2,PC3,NEO

Re: PureViewer

Posted: Mon Sep 14, 2015 9:45 am
by dobro
some corrections .... :)

Re: PureViewer

Posted: Mon Sep 14, 2015 4:36 pm
by dobro
modified code

PureViewer can now (Thanks to Flype)
read formats IFF (Amiga)
sample images here:
https://www.filepicker.io/api/file/9TWib84jTZCM82hwZeET

Re: PureViewer

Posted: Tue Sep 15, 2015 9:32 am
by Vera
Hello dobro,
Thanks you so much for your PureViewer :D

On Windows the very simple Bmap viewer was my most comfortable quick pictureviewer ever since and I miss alike on Linux. Now your PureViewer is a great offer to have something similar on Linux.

So, I had been following your thread already on the french forum and altered your code to run on Linux and with a smaller laptop keyboard. Besides I've enhanced and added a few things.
Would you mind if I'd shared it on here?

About the latest IFF format:

It too runs fine for me. But there was an issue that:
a - the images didn't load due to the LCase(path$... After removing the LCase again it works fine.
b - opening any of the IFF-images would always show 'Danny_Pegasus.iff'. Shuffling would always freeze the app at a certain point. Droping an IFF-image didn't work.

I found out that the trouble comes from this picture: 'Titan_MrHyde.iff'.
After disabling it to be loaded (resp. scanned) all descibed issues under b) vanished.

I can't find out why and where it happens, but I thought you might like to know.

greets ~ Vera

Re: PureViewer

Posted: Tue Sep 15, 2015 12:14 pm
by dobro
Thank you, I will look these things
I'm always on the code, so it constantly evolves
I'm trying to take care of Gif, Animated Gif, Avi, wmv, mpg, etc .. :)

Re: PureViewer

Posted: Tue Sep 15, 2015 12:44 pm
by Vera
Yes - gif is a format I too would like to see.

Thanks to Wilbert offering us a smart opportunity ;-)

Re: PureViewer

Posted: Tue Sep 15, 2015 1:08 pm
by dobro
Vera wrote: Would you mind if I'd shared it on here?
ho.. yes , but in New topic "PureViewer Linux" if you want :)

I do not want a topic that mix the 2 prg ;)

actually here in my home , the Gif animations are done!
I use the Movie library ;)

Re: PureViewer

Posted: Tue Sep 15, 2015 2:03 pm
by Vera
dobro wrote:in New topic "PureViewer Linux" if you want :)
Thank you :D ... though I'm tending to keep it OS-neutral and rather move to something like '- side branch'

Ah, and thanks for the tip to look into the movie lib as option for animated display ... I'm on the way

Re: PureViewer

Posted: Tue Sep 15, 2015 5:43 pm
by dobro
code updated

Adding seen Gifs and Animated Gif
play avi movies, mpg, divx, wmv

:)

Re: PureViewer

Posted: Wed Sep 16, 2015 5:14 pm
by dobro
code udated
opens the following files Now :

images Atari
PI1,PI2,PI3,PC1,PC2,PC3,NEO (Degas Elite + NeoChrome )

images PC :
DDS (MiLoo )

the code becoming too big, I now propose to download the archive
the archive contains the compiled code, the source code
and some exotic image archives (Atari, Amiga, PCX) :)

Re: PureViewer

Posted: Thu Sep 17, 2015 8:13 am
by dobro
addition of Ico formats ...

Fixed a proportion of problem on very big image (> 1080x1024) in Full-screen mode
they were not simply reduced to the screen ..

replacement Flype code formats for IFF (Amiga) with the new version (thanks to him) :)

download at the same link

Re: PureViewer

Posted: Thu Sep 17, 2015 5:05 pm
by dobro
Fixed a problem related to the rotation
which after several rotation blurred image (interpolation)

Correction of several little bugs like crash if you open an image file by the button, and finally we do not want to open

:)

Re: PureViewer

Posted: Sat Sep 19, 2015 11:09 am
by dobro
Code updated
I force the writing of the inf file (which contains the location and the window size)
has be written in user space, just to avoid that as it drags everywhere ... :roll:

Re: PureViewer

Posted: Sat Sep 19, 2015 2:03 pm
by Vera
Hello Dobro,
as for your latest version I really like that it now initially starts at a good position and with a decent dimension :D

Now if I toggle to 'fullscreen' and return back to 'window' the window than is again oversized (beyond my screen). It would be nice if it returned to the position + dimension from where it came.

Small suggestion: if loading something new the requester always opens user/pictures. Now 1st - I e.g. don't even have that folder or it would be empty and surely never contain 'my' pictures.
That's ok for an initial use of the app but on the long it'll be annoying if the requester can't offer a different address.
Why not use a 'last opened address' variable to set as requester-path while the viewer is running and additionally write that last path into the inf as well. And on next viewer start use this entry (if existing) as requester target. That'll surely be more comfortable (and reasonable) to many users.

just on a sidenote: it still runs via wine, but know gif and avi don't display, and avi even freezes the viewer

have a good weekend ~ Vera Image

Re: PureViewer

Posted: Sat Sep 19, 2015 5:12 pm
by dobro
Vera wrote: Now if I toggle to 'fullscreen' and return back to 'window' the window than is again oversized (beyond my screen). It would be nice if it returned to the position + dimension from where it came.
Strange. ..
you must delete the file
c: \ user \ xxx \Pure_viewer.inf
Now, the inf file is saved in this location only
This file is updated each time you leave
or when resize


Small suggestion: if loading something new the requester always opens user/pictures. Now 1st - I e.g. don't even have that folder or it would be empty and surely never contain 'my' pictures.
That's ok for an initial use of the app but on the long it'll be annoying if the requester can't offer a different address.
Why not use a 'last opened address' variable to set as requester-path while the viewer is running and additionally write that last path into the inf as well. And on next viewer start use this entry (if existing) as requester target. That'll surely be more comfortable (and reasonable) to many users.
I'm not about, understand, [reedit] I understand !! :D [/reedit]

but I can add the path of the last image viewed
Pure_viewer.inf in the file ....if you want ... :)

I personally I use this viewer, just double click on thePictures , and then Drag-Drop on the window ...

very rarely using the Load button
and even more rarely by launching first, the viewer ..

just on a sidenote: it still runs via wine, but know gif and avi don't display, and avi even freezes the viewer
I saw that with certain Gif ...

I think the cause is the Movie library, which needs time
to boot ..
I will look at this

Thanks :)