Inline Images Options » History » Version 1
Per Amundsen, 05/20/2018 02:13 AM
1 | 1 | Per Amundsen | h1. Inline Images |
---|---|---|---|
2 | |||
3 | Experimental support for Inline images was added "in this 64 bit build":https://adiirc.com/build/AdiIRC64.exe and "this 32 bit build":https://adiirc.com/build/AdiIRC.exe, this may or may not become a feature depending on feedback/issues discovered. |
||
4 | |||
5 | Support for setting custom domains may be added later. |
||
6 | |||
7 | h2. Testing |
||
8 | |||
9 | *When enabled, all links ending with a image file extension will be downloaded, so don't enable if you are on channels/networks you don't trust.* |
||
10 | |||
11 | I don't recommend testing this in your daily driver, instead download the AdiIRC.exe to a folder somewhere and run it from there. |
||
12 | |||
13 | It can be useful to keep the [[Rawlog Dialog|Rawlog]] open to see any errors when loading images. |
||
14 | |||
15 | h2. Enabling Inline Images support |
||
16 | |||
17 | All options is currently done through the [[/setoption]] command. |
||
18 | |||
19 | To enable, type: |
||
20 | |||
21 | <pre> |
||
22 | /setoption InlineImages UseInlineImage True |
||
23 | </pre> |
||
24 | |||
25 | To disable, type: |
||
26 | |||
27 | <pre> |
||
28 | /setoption InlineImages UseInlineImage False |
||
29 | </pre> |
||
30 | |||
31 | _When the support is disabled, all inline images is removed from all text buffers._ |
||
32 | |||
33 | h2. Enabling animate gifs |
||
34 | |||
35 | To enable, type: |
||
36 | |||
37 | <pre> |
||
38 | /setoption InlineImages AnimateInlineImages True |
||
39 | </pre> |
||
40 | |||
41 | To disable, type: |
||
42 | |||
43 | <pre> |
||
44 | /setoption InlineImages AnimateInlineImages False |
||
45 | </pre> |
||
46 | |||
47 | _When the support is disabled, all gifs will stop animating and show the first frame as a static image._ |
||
48 | |||
49 | h2. Changing the maximum image size in bytes |
||
50 | |||
51 | By default only images smaller than 2 megabytes is downloaded, this can be changed by typing: |
||
52 | |||
53 | <pre> |
||
54 | /setoption InlineImages InlineImagesMaxBytes N |
||
55 | </pre> |
||
56 | |||
57 | Where N is the new maximum number of bytes to allow. |
||
58 | |||
59 | h2. Changing the image sizes |
||
60 | |||
61 | By default all images which cannot fit in 20 lines using the current font is downsized, the number of lines can be changed by typing: |
||
62 | |||
63 | <pre> |
||
64 | /setoption InlineImages InlineImagesMaxLines N |
||
65 | </pre> |
||
66 | |||
67 | Where N is the new maximum number of lines before the image is resized. |
||
68 | |||
69 | _The images keeps their aspect ration when resized, resizing by width is not supported, so a very wide image could be cut off._ |
||
70 | |||
71 | h2. Cache |
||
72 | |||
73 | All downloaded images are saved to [[$scriptdir]\Cache\Preview, the folder is cleared automatically when AdiIRC is closed. |
||
74 | |||
75 | Some option for handling cache may be added in the future. |
||
76 | |||
77 | h2. Feedback |
||
78 | |||
79 | Would like to hear how slow/fast loading and painting the images is, and whether cpu usage is acceptable. |
||
80 | |||
81 | Since Taskbar memory usage is not accurate at all for .NET program, the output from the [[/imagecache]] command could be useful to determine memory usage. |
||
82 | |||
83 | The /imagecache command also prints the number of images in the cache, it would be useful to know whether it shrinks properly when a window buffer is cleared or the image line is removed in other ways. |