WDX Content Plugin: ImgSize

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

Moderators: Hacker, petermad, Stefan2, white

J.Bl
Member
Member
Posts: 116
Joined: 2005-01-23, 16:29 UTC

WDX Content Plugin: ImgSize

Post by *J.Bl »

Hello,

At http://www.bleichroth.info/pub/wdx/wdx_ImgSize.zip

I have placed a WDX Content Plugin for Total Commander (version 6.50 and higher) with informations about Image Width, Height, Pixel, Diagonale.

Regards

J. Bl
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Thanks

Post by *Vansumsen »

To J. BL
A great thanks for your plugin, I was waiting for such one... :D
Nice work !
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
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2J.Bl
I got this error:

---------------------------
error
---------------------------
Crash in plugin ImgSize.wdx:

External exception EEDFADE


This error appears in custom columns dialog displaying the fields Width and Height. The problem seems to be a 0 bytes bitmap.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Doesn't work here

Post by *Clo »

2J.Bl
:) Hello !
- Doesn't work here under Win 98SE :
1. I get only the "Width" column-tab and its correct translated caption, but it displays nothing in the column for image-files :(
2. I get a pack of digits (values without any space) for file which are NOT images, and for these files only, for instance ZIP archives :P
3. This occurs either as adding the colomns from the plugin in an already existing custom header, or building a new header with all columns from the plugin. Not any crash, though.
¤ Below, the French section for the LNG:

Code: Select all

[FRA]
x=Largeur
y=Hauteur
x*y=pixels
Diagonal=Diagonale
Hoping you will improve this…
:mrgreen: Regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
szlori
Senior Member
Senior Member
Posts: 263
Joined: 2005-01-17, 07:12 UTC
Location: Sydney

Post by *szlori »

Haven't checked it out yet.
What image formats it supports?
Cheers!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Crash in plugin ImgSize.wdx:

External exception EEDFADE

This error appears in custom columns dialog displaying the fields Width and Height. The problem seems to be a 0 bytes bitmap.
General remark to plugin writers: PLEASE make your plugins as error-tolerant as possible! Always check the data you use, because the user may send just about ANYTHING to your plugin! A file may have extension .JPG but be something completely different...
Author of Total Commander
https://www.ghisler.com
J.Bl
Member
Member
Posts: 116
Joined: 2005-01-23, 16:29 UTC

Post by *J.Bl »

Hello,

Thank you for your response.

Lefteous wrote:
> Crash in plugin ImgSize.wdx ... The problem seems to be a 0 bytes bitmap
In version 1.02 I have added some additional file checks, please try it


Clo wrote:
> Doesn't work here under Win 98SE ... get only the "Width" column-tab
I do not use W98SE and so I have no chance to check it under this OS. Please try new version 1.02.

> I get a pack of digits ... for file which are NOT images
I do not understand, why this happens, because I check the extension of the files. In version 1.02 I have added some additional file checks, please try it.

> the French section for the LNG
Done. French language added.


szlori wrote:
> What image formats it supports?
The (AFAIK) most often used formats: JPG GIF BMP PNG (See Readme.txt)

Please get the new version 1.02 here http://www.bleichroth.info/pub/wdx/wdx_ImgSize.zip
or - better - here http://www.totalcmd.net/plugring/wdx_ImgSize.html
Regards

J.Bl
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Post by *Raymond »

To J.Bl

Is it possible to add "BPP" as Image Info plugin did?
J.Bl
Member
Member
Posts: 116
Joined: 2005-01-23, 16:29 UTC

Post by *J.Bl »

Hello,

[quote]
General remark to plugin writers: PLEASE make your plugins as error-tolerant as possible! Always check the data you use, because the user may send just about ANYTHING to your plugin! A file may have extension .JPG but be something completely different...[/quote]

Thank you for your remark. I already use the content plugin feature 'ft_delayed', but every additional check makes a plugin of course slower and slower... that's the way it is...

Regards

J.Bl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thank you for your remark. I already use the content plugin feature 'ft_delayed', but every additional check makes a plugin of course slower and slower... that's the way it is...
A simple check for a NULL pointer costs almost nothing - in my experience, the really "expensive" things are disk accesses...
Author of Total Commander
https://www.ghisler.com
J.Bl
Member
Member
Posts: 116
Joined: 2005-01-23, 16:29 UTC

Post by *J.Bl »

Hello,
Raymond wrote:To J.Bl

Is it possible to add "BPP" as Image Info plugin did?
I will try it...

Regards

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

Same---

Post by *Clo »

2J.Bl
:) Hello !

¤ I updated the plugin to the version 1.02 (still under Win 98SE)
- I reinstalled it, and configured a whole new header with all availables columns.
- You can see the result on this screen-shot
- only the "Width" column is built (Largeur),
- all values are sticked ones others,
- this picture shows the rest of the tab-header up to the windows divider…
¤ Now, I no longer see the pack of values for non-image files…

:mrgreen:  Regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
J.Bl
Member
Member
Posts: 116
Joined: 2005-01-23, 16:29 UTC

Re: Same---

Post by *J.Bl »

Hello,

Clo:
Thank you for your tests. Maybe it make sense to send you by Email a simple (basic) plugin from me to check this. Is this possible?

All:
I have added 2 new colums to the Plugin:
- Orientation (Portrait, Landscape, Square)
- Size (small, medium, large)

Get the new version 1.03 here http://www.bleichroth.info/pub/wdx/wdx_ImgSize.zip
or - better - here http://www.totalcmd.net/plugring/wdx_ImgSize.html

Regards,

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

No problem---

Post by *Clo »

2J.Bl
:) Hello !
- Yes, indeed it's possible. You can attach a small zip-archive to a mail : charriesATwanadooDOTfr
- Please, write TOTAL_COMMANDER "as is" in the subject, in order I can recognize you mail for a first contact (to avoid the dust-bin). Then , I will put you in my filtered "Green List" ;)
EDIT : "In the case", I dowloaded the version 1.03. There is an error in the French section for the additionnal raw "Size" Below, the right string :

Code: Select all

Size=Taille
Unfortunately, the result is the same than with the previous version under Win 98SE (I thought that Win variables are very limited at number under Win9x…)

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