Imagine (Lister plugin for viewing img files) v. 1.5.3 (May 21 2024)

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

2Peter
Imagine help wrote:
How can I use Imagine.wcx file?

The following is applied only to Total Commander users as I said at the above.
With Imagine.wcx file, you can browse the image/animation files as if they're archive files.
Associate with 'Imagine' extension. Then you can browse into any graphic files that are supported by Imagine.
You can also extract frames that you want from animation file. (ex. Animated GIF file)
And you can convert the format of image. The target image format is determined by the extension of target image filename.
With the 'Create separate archives, one per selected file/dir' option, it can be used with batch conversion tasks.

I can read English, but... I write like Tarzan. (sorry)
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Post by *deus-ex »

Peter wrote:How does it works? It converts pictures?
Let's asume you have configured the Imagine packer plugin in wincmd.ini like this:

Code: Select all

[PackerPlugins]
img=71,%commander_path%\wlx\imagine\imagine.wcx

Now to convert some image(s) to PNG:
  • select the image(s) you want to convert
  • press Alt-F5 to open the pack files dialog
  • select the Imagine packer plugin extension from the dropdown list (e.g. "img", like in the wincmd.ini example shown above)
  • if you have selected more than one file for conversion, also check "create separate archives, one per file" in the pack files dialog
  • replace the target filename with *.png (or any supported file format, e.g. *.jpg, *.bmp, *.tga, *.pcx, etc...)
  • press/click Enter
Note:
You can convert single images to PNG by pressing CTRL+PGDOWN on the image (i.e. like entering an archive), then press/click F5 on the PNG-filename entry to copy & convert it out to PNG format.

___________
Kind regards,
deus-ex
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

2deus-ex

Hello,

Good explanation :). One point, I don't use the extension "img" in imagine.wcx for prevent conflicts with img disk files. (but not really important)

One tip/addition to your elaborated report:
For convert directly to others formats can be used these lines (the most common formats on my case)

Code: Select all

gif=327,%COMMANDER_PATH%\Plugins\wlx\Imagine\Imagine.wcx
png=327,%COMMANDER_PATH%\Plugins\wlx\Imagine\Imagine.wcx
jpg=327,%COMMANDER_PATH%\Plugins\wlx\Imagine\Imagine.wcx
bmp=327,%COMMANDER_PATH%\Plugins\wlx\Imagine\Imagine.wcx
tif=327,%COMMANDER_PATH%\Plugins\wlx\Imagine\Imagine.wcx
With this... the desired format can be chosen from the combobox compressor directly.

Regards.
I can read English, but... I write like Tarzan. (sorry)
User avatar
Peter
Power Member
Power Member
Posts: 2064
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

Thanks to both. Now it is clear.

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Imagine 1.0.3 crashes on some PSP (PaintShopPro) files - both for plugin and exe.

You can find these files here:
http://fenixproductions.republika.pl/tmp/crash.zip

Little explanation:
- on_load.psp - Imagine goes away without any message during file's load process,
- on_close.psp - some error message is shown when I try to close it or skip to next file; changing to other application wipes preview window and gives "No response" info in title bar,

IrfanView and XnView have no problems with it.

PS. Please, add the possibility to disable some extensions handling completely.

1. Specifying "IViewAdditionalTypes" for crashing file type changes nothing.
2. Disabling PSP support via:

Code: Select all

MULTIMEDIA|EXT!="PSP"
gives nothing also.
3. Removing MULTIMEDIA keyword is not working.

Currently, the only possibility to not crash TC is to switch off plugin or avoid dirs with PSP files.

PS2. Operating system: WinXP Pro SP3 (PL)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Little correction.

This will disable PSP handling:

Code: Select all

MULTIMEDIA & EXT!="PSP"
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

A little more info about PSP issue.

When I switch view mode to "Thumbnails" I can expect two ways of handling lister plugin's errors:

1. TC will crash without any message.
2. TC will prompt about an error and ask about next steps (close app or continue). In the second scenario thumbnails loading procedure will continue showing "images" but the problematic ones will have a picture of error message text.

Second way does not always work flawless. In many cases TC crashes after second error message (two text images).

Starting with TC after no. 2 crash gives another two scenarios:

1. TC will continue processing thumbs for directory (leaving problematic files without any preview or with this "text image").
2. TC will start processing from the beginning and crash on first problematic file.

I've checked about 20 Imagine versions between 0.9.0.0 and 1.0.3 and some of them gives similar behaviour as described above. The only one without any kind of crash is 1.0.1. It still shows "text image" but no TC disappearing. Using F3 on problematic files (with 1.0.1 version) gives lister window with Imagine controls inside but without file preview. Using other plugin's releases kills lister (and TC) immediately.

Sample movie can be seen here:
http://cid-e12762cbdafb3c47.skydrive.live.com/self.aspx/TC/imagine.zip
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48231
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The crash means that TC cannot handle the exception. It is trying to catch it with a try - except block. This works if the exception occurs in the same thread, and doesn't destroy the stack. So in the current situation, imagine is either creating a new thread to extract the image, or the crash is overwriting data on the stack. The second problem could be a big security problem, so I hope that the imagine author will take care of it soon.
Author of Total Commander
https://www.ghisler.com
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Bug:
I tried to open a high res photo (41300x21600) and Imagine showed just a blank, white window. Possibly it was because it doesn't fit in my memory when decompressed (I have just 1GB), but Imagine didn't show any error message.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Bug:
Imagine crashes on the following file (the one inside the archive ;)):

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="a.7z"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="a.7z"

N3q8ryccAAKDLrqdjQEAAAAAAAAhAAAAAAAAAHHxCtAAJpaMgAAIAAtkM1SLFV2RERj26w9b3U3N
VURxIvFudJIUrpZKiEaF6QoIfbWzmO1UO8TNdec5a7nSHv4xBSy4A2LTTiuH/tFnI1rGhM+KngT5
6j/qMpoqFTdPjKBVOxTSDUPWU263ieuKC6lLwAY8eczZBu3cZ/C5couGogBw1B/vCSlwY4gHVLfe
BTOkwfGF1FabS1g1o+hDKF8jiVXjCUjeD8JpuOchbOcktpMaEDRHrSz1i7xXdntWyEM3jLOHs75a
4Zs3/4uJev57W3cSdArzhM5IBoHzWWtLh0pfjgQYI9dB3WsXISVJx8L376ybB0aDGzZQN5O7167H
TcuiBFZFXLsDnjLn7hujKApnCfi77QU+KXKZjAv/6CWdKa06A7ZEonZbOUfba0i3pOQLUHR77iCy
+GF9PHUoglkvXu3j9AAAgTMHrg/VOU3l1yTT/rN+L4mSvr4+J5LM1NLH34/4TZ3AbD2Im31xO9ZQ
sFt+d7xoy5K+r3SFUsaGwdMdPZ+Edx+prmy1DiZcFwaBQwEJSgAHCwEAASMDAQEFXQAAQAAMTAoB
PRNDNwAA
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Bug:

Code: Select all

---------------------------
Error
---------------------------
"E:\projects\chromium\src\third_party\python_24\Lib\site-packages\win32\test\win32rcparser\python.bmp" - Out of memory
---------------------------
OK   
---------------------------

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="python.bmp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="python.bmp"

Qk0NCgMAAAAAAAB2AAAAKAAAACEAAAAhAAAAAQAEAAAAAACUAgAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAIAAAIAAAACAgACAAAAAgACAAICAAADAwMAAgICAAAAA/wAA/wAAAP//AP8AAAD/AP8A//8A
AP///wD/////////////////////8AAAAP////8AAA/////////////wAAAA////8KqjoA/wAAD/
//////AAAAD///8DM6qqoA0KqqoA//////AAAAD///CqqqMzM6MzMzMP8A//8AAAAP//8KqqMzMz
MzMzMzANCqD/8AAAAP//8DM6MzMzMzMzMzMzMw/wAAAA///wqqozMzAzMzMDMzMzMPAAAAD///8N
CqozMzMDMzDwMzADMPAAAAD///8DM6MzMzAAD/8AD/Aw8AAAAP+f//ANCqozMzMP//////8A8AAA
AJ+f///wM6ozMzD///////DwAAAA+ZAAAP/wqqMzMw////////AAAAD/maqqAP8DOjMzMP//////
8AAAAP8JmjqqAP8NCqMzMw//////8AAAAP8AmQA6qg/wOjMzD//////wAAAA/wAJkAA6oPCqozMw
//////AAAADwo6OjAA0KOgAzozMw//////AAAAANCqqqqqAAOqCqozMw//////AAAAANCqOjo6qg
DQo6DQozMzD/////8AAAAAMzMzOjqgCqoDMzMP/////wAAAAAwMwMzOjqqqgMzMP//////AAAAAD
MzMzMzOjqqAzMw//////8AAAAPAzMzMzMzM6AzMw///////wAAAA/wAzMzMzMzAzMA////////AA
AAD//wAAMAAzMAAP////////8AAAAP//8LsLuwMA///////////wAAAA///wvAvMAw//////////
//AAAAD///C8C8wDD///////////8AAAAP//8LsLuwMP///////////wAAAA///wAAAAMw//////
//////AAAAD///8DMDMw////////////8AAAAP////APAA/////////////wAAAA
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

As noted by fenixproductions, this bitmap has corupted header that says it's 8448*8448 with 1024bit color.

But I still think it's a bug as Imagine should say something like "file corrupted" instead.
User avatar
petermad
Power Member
Power Member
Posts: 14913
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Imagine 1.0.4 (Nov 14 2008) has been released at:

http://www.nyam.pe.kr/phpBB3/viewtopic.php?f=2&t=14
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

1.0.4 still doesn't work with PSP files (reported by me).
Gives proper "Not enough memory" for BMP from m^2 though.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
petermad
Power Member
Power Member
Posts: 14913
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

To all Imagine users - see this:

http://www.ghisler.ch/board/viewtopic.php?t=21055
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply