ImgView lister plugin for ANI,BMP,CUR,EMF,EPS,GIF,ICO,JPEG,JPG,PCX,PIC,PNG,PSD,PSP,PSPIMAGE,SCR,SGI,TGA,THM,TIF,WMF

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Michael Diegelmann
Junior Member
Junior Member
Posts: 36
Joined: 2006-02-18, 17:25 UTC
Location: Rosenheim (Germany)
Contact:

ImgView lister plugin for ANI,BMP,CUR,EMF,EPS,GIF,ICO,JPEG,JPG,PCX,PIC,PNG,PSD,PSP,PSPIMAGE,SCR,SGI,TGA,THM,TIF,WMF

Post by *Michael Diegelmann »

This TC lister plugin ImgView has been designed as an image file viewer. For the time being, the current version 2.0 is a 32 bit DLL only, requiring to run the 32 bit version of Total Commander. Development of the 64 bit version of ImgView is currently underway.

• Supported image file types: ANI (display will be static only), BMP, CUR, EMF, EPS, GIF (including animated GIF, anti-aliasing mode must be turned off), ICO, JPEG, JPG, PCX, PIC, PNG, PSD, PSP, PSPIMAGE, SCR, SGI, TGA, THM, TIF and WMF
• Rules for automatic resizing of images to fit the viewer window can be selected independently for images which are either too small or too large
• Optional automatic orientation of images according to the orientation information contained in the Exif meta data (due to a nasty bug of my CANON camera used as a reference in developing ImgView, upside down photos of all other cameras will be displayed mirrored horizontally, bug fix is underway)
• Optional anti-aliasing (suppression of moiré effects with down scaled pictures)
• Loading speed of JPG files improved by a factor of 3 to 4 if compared to version 1.0
• Easy copying of images to the clipboard (EMF and WMF as a vector graphic and as a bitmap, all other image file types as a bitmap only)
• Easy printing of images (user-defined printer page layout)
• Supported languages: English, German, French, Italian, Spanish, Dutch, Danish and Swedish (automatic selection depending on the language selected in Total Commander)
• From Total Commander version 6.5 onwards simplified installation by double clicking the download file ImgView.zip (containing the required PlugInst.inf file)

(Note: In order to enable the WMF display manually add WmfAllowed=3 to the [Configuration] section of the wincmd.ini file if necessary. The WMF safety gap has been taken care of, using a code snippet provided by Christian Ghisler.)

Download URL #1: http://diegelmann.fh-rosenheim.de/index_English.htm#ImgView

Download URL #2: http://www.fh-rosenheim.de/~diegelmann/index_English.htm#ImgView
Last edited by Michael Diegelmann on 2019-09-26, 10:14 UTC, edited 18 times in total.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

The speed is very nice already, but the flickering on image change is hardly tolerable, I would consider that a bug.

If you are interested in requests, maybe you wanna start with these:
PNG and GIF support
mouse (wheel) support

You know that you will have a hard time if you want to create an alternative to Imagine, right? Not sure if this is your intention of course... ;)

Thanks and good luck with development

Icfu
This account is for sale
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Jeff +++

Post by *Clo »

2Michael Diegelmann

:) Hello !

- I agree all icfu's remarks and requests above, and would add one : please, add a small text LNG file to make the plugin translatable, even if there are a few strings… including the keys names and also the most probable error-messages { I don't read German a lot, even just some drops :P }

:mrgreen: Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Michael Diegelmann
Junior Member
Junior Member
Posts: 36
Joined: 2006-02-18, 17:25 UTC
Location: Rosenheim (Germany)
Contact:

IMGView TC lister plugin improved

Post by *Michael Diegelmann »

After a while of public beta testing of my new IMGView TC lister plugin I have improved some of its features according to the suggestions proposed in this forum and by e-mail.

* Flickering on image change: eliminated
* PNG and GIF support: now supported: BMP, EMF, EPS, GIF, ICO, JPG, PCX, PIC, PNG, PSD, PSP, SCR, SGI, TGA, TIF, WMF (using the GraphicsEx library of Mike Lischke http://www.soft-gems.net/WebSVN for those image file types which are not supported by the Borland VCL)
* Mouse wheel support: browsing through TC file list by mouse wheel implemented (equivalent of keys 'P' and 'N')
* Image positioning: dragging images by mouse and for initial position choice between top left corner or center of lister window
* Image resizing: double clicking the lister window client area toggles the currently applied 'fit to window size' setting on and off
* Language support: now supported: English, German, French, Italian, Spanish and Swedish (language derived from TC language setting, default for all other languages is English)

(Note that for rerouting the newly added file types to this IMGView TC lister plugin, prior to the installation of a new IMGView version any previously installed older version of IMGView supporting only BMP, EMF, ICO, JPG and WMF files has to be uninstalled manually (menu items Configuration-Options-Operations/Plugins-group box Lister plugins-buttons Configure and Remove.)
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

2 Michael
* Language support: now supported: English, German, French, Italian, Spanish and Swedish (language derived from TC language setting, default for all other languages is English)
No trace of languages files ! :(
Did I miss something ?

Friendly

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

The TC one !

Post by *Clo »

2Vansumsen

:) Hello Paul !

- No file, but alright in French here ! I guess the TC LNG is used for the needed strings…
BUT : the key-names in German do not the trick, so I guess that a separate LNG should be better…

:mrgreen:  Friendly,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

Hello Clo

You got it... :D

When I use WCMD_FRA.LNG (original language file) all is working OK, and in french... except Strg+C (CTRL+C)
But as you know, my personal language file is WCMD_FRA_PV.LNG... and that's the reason why French language was not recognized !

Maybe the author, can correct this just by taking only the 3 characters following the «_» to determinate the language (like TotalSQX do)

Thanks

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Vansumsen
taking only the 3 characters following the «_» to determinate the language (like TotalSQX do)
Total SQX doesn't do it this way. The filenames behind the underscore must be identical. If this fails Total SQX checks if the value of the "Language" ini file key is contained in the first line of the current TC language file.
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

2Lefteous
:oops:
Thanks to correct me, any way your method is perfect for me ! :D
Friendly
Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

TIFF=one image...

Post by *Clo »

2Michael Diegelmann

:) Hello !

• TIFF is displayed, but not the multi-page ones. Only the first page is shown.
- TIFF being mainly a kind of “empty container”, there is not a big interest to have this format without the capability to display all pages…
*.DCX is the same kind of file but not supported actually…

• Like I said above, the keys names might be translated. You could get this in Windows according to the language of Win.

- Commands to get at least the next¦previous file are missing, and I think it's a minimum to use the plugin normally…

- Further, the animation of GIFs is missing too; IMHO, to view an animated GIF as the first frame only doesn't make sense…

:mrgreen:  VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Michael Diegelmann
Junior Member
Junior Member
Posts: 36
Joined: 2006-02-18, 17:25 UTC
Location: Rosenheim (Germany)
Contact:

Post by *Michael Diegelmann »

Following the suggestions proposed in this forum and by e-mail some of the IMGView features have been modified (and hopefully improved).

Image resizing: When deactivating the 'shrink to window size' setting for large images by double clicking the image area, the point clicked will be the fixed point of this magnification operation.

Image positioning: In addition to dragging by mouse, images larger than the lister window can be scrolled in the ususal way by means of the Cursor Up/Down/Left/Right, Home, End, Ctrl+Home and Ctrl+End navigation keys.

Browsing the TC file list: The group of highlighted files can be browsed either by the PgUp and PgDown keys or by mouse wheel (same effect as the native 'P' and 'N' keys supported by the TC built-in lister).

Language support: Language now derived from the initial WCMD_xxx portion of the LanguageIni parameter in WinCmd.ini (allowing for such exotic things like customized LNG files as e.g. WCMD_FRA_PV.LNG).

Labeling of keyboard shortcuts ('keys names'): 'Strg' replaced by 'Ctrl' for all languages (same policy as in TC itself).

Support of animated GIFs and other gimmicks: See the ReadMe.txt file of the IMGView version currently available for download.
Last edited by Michael Diegelmann on 2006-03-16, 13:51 UTC, edited 2 times in total.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

* Language support: Language now derived from the initial WCMD_xxx portion of the LanguageIni parameter in WinCmd.ini (allowing for such exotic things like customized LNG files as e.g. WCMD_FRA_PV.LNG).
This is bad, please check the last characters after the last underscore instead. Language files like WCMD_FRA_PV.LNG will break automatic translation of content plugins! The correct name should look like that:
WCMD_PV_FRA.LNG

See this thread as a start:
http://ghisler.ch/board/viewtopic.php?t=9828

and this posting from petermad who has found out how the name has to look like:
http://ghisler.ch/board/viewtopic.php?p=81230#81230

Icfu
This account is for sale
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

N¦P without selection

Post by *Clo »

2Michael Diegelmann

:) Hello !

- Thanks for the update.
- However, I dislike totally the next¦previous file needing to select the whole bunch of files to view.
- In Lister, this is a pain in the b** !
- Another behaviour has been requested for Lister itself a long while ago. Nothing has changed yet. :|
- So, again, please a couple of commands to get the next¦previous file, and the plugin'll become quite honourable…

:mrgreen: V.G.
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Michael Diegelmann
Junior Member
Junior Member
Posts: 36
Joined: 2006-02-18, 17:25 UTC
Location: Rosenheim (Germany)
Contact:

Browsing the TC file list

Post by *Michael Diegelmann »

Concerning Clo's problem browsing the TC file list: IMGView is not a stand-alone program that has access to the TC file list and therefore it cannot forsee which file might be opened next. IMGView is a lister plugin and is entirely dependent on TC as the master application. It has to wait for TC to hand over the name of the next image file to be displayed. The only thing IMGView can do is to send a 'P' (previous) or 'N' (next) message to TC and wait for the following file name. This can be done either by pressing the PgUp or PgDown key or by rotating the mouse wheel up or down.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Tssss……

Post by *Clo »

2Michael Diegelmann

:) Hello !

- To be a *.wlx only doesn't prevent to have next¦previous files commands without a pre-selection. This is done in example with SGViewer which is not a standalone programme with an EXE, same with Imagine as *.wlx plugin (not using the EXE)…

- To select the files before viewing sucks.

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Post Reply