Pictureviewer 0.3 with PDF support

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Pictureviewer 0.3 with PDF support

#1 Post by MU »

This is related to the picturebrowser, but a standalone, independent program.
http://www.murga-linux.com/puppy/viewtopic.php?t=41919

It has no tree.
The viewer shows a picture, and you can zoom/rotate it.

A special feature:
you can drag a picture from your webbrowser (or filemanager) on it (or pass a URL as commandline-option).

The viewer will download then the picture to /tmp/, and display it.

Thiis is handy for example, if you visit sites for singles, where the customers often upload very small portraits.
With the viewer, you quickly can zoom into it.

I attach the pet for Puppy 4.12.

-------------------
A Windows binary is included in the sourcepackage:
http://www.murga-linux.com/puppy/viewto ... 771#302771
-------------------

Note:
the Wallpaper button will only work, if you create a script /usr/bin/set_wallpaper

It could look like this:

Code: Select all

#!/bin/bash 

/usr/local/apps/Wallpaper/set_bg "$@" &
I did nnot try that yet, as I just finished the rest, and must sleep now.

Mark
Attachments
Pictureviewer-0.3.pet
(29.35 KiB) Downloaded 1306 times
pictureviewer01.jpg
(54.1 KiB) Downloaded 2779 times
Pictureviewer-0.1.pet
old version without libpoppler dependency
(24.04 KiB) Downloaded 1117 times
Last edited by MU on Fri 08 May 2009, 15:32, edited 1 time in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

Updated to version 02, it can display PDF documents.

Note: the pages are shown as pictures, so you cannot select text.
I must add a textview class to enable a textmode view.

Mark
Attachments
pictureviewer02.jpg
(56.18 KiB) Downloaded 2722 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

version 03.

Changes:
- using the zoom spinbox, the picture is centered

- also in PDF mode, you have the buttons to run external graficsprograms. They will open the current page, rotation is taken in account.

- you can show the text of the current or all pages in Leafpad (Windows: Notepad)

- Windows has a button for "paint" instead of mtpaint

- you can select the next PDF page from a combobox.

Mark
Attachments
pictureviewer03.jpg
(76.09 KiB) Downloaded 2715 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

Hi Mark

Was just about to mention the wallpaper not working - and see you are already planning to activate it . . . :)

Gpicview is used in Puppy 4.2.1 (your program works in RC3 by the way)
but of course you are working on classes (bit of that Java tuition coming in?) that could be called from a variety of Puppy programs . . .

Reading what you are up to it almost seems like we can have a PuppyClasses.sfs (or something similar) that will enable Puppy programmers to use shared code . . . not sure how ready this might be for Puppy 5 but by Puppy 6 it really takes Puppy to the fore of innovation . . .

ah . . . back to subject . . . you are supporting 'gqview' - which I assume is the Muppy standard? Gpicview can be called with the command 'gpicview' if you want to add a button for it :)

Many thanks
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

- you could use a symlink:

ln -s /usr/bin/gpicview /usr/bin/gqview

Then the gqview button should run gpicview.

I can add a filecheck in the next release, so only those buttons are shown, where the corresponding programs are installed.

- Using the wallpapersetter requires to add the small script as described in the first message.
I'll add it to the next version.

- The classes can not be used from any program, just from genie programs.
I will work on some small example applications in the next 2-3 weeks.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

Post Reply