Inline Images Options » History » Version 7
Per Amundsen, 05/20/2018 07:53 PM
1 | 4 | Per Amundsen | {{>toc}} |
---|---|---|---|
2 | |||
3 | 1 | Per Amundsen | h1. Inline Images |
4 | |||
5 | 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. |
||
6 | |||
7 | 7 | Per Amundsen | Support for setting custom domains and including/excluding channels may be added later. |
8 | 1 | Per Amundsen | |
9 | h2. Testing |
||
10 | |||
11 | *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.* |
||
12 | |||
13 | I don't recommend testing this in your daily driver, instead download the AdiIRC.exe to a folder somewhere and run it from there. |
||
14 | |||
15 | It can be useful to keep the [[Rawlog Dialog|Rawlog]] open to see any errors when loading images. |
||
16 | |||
17 | h2. Enabling Inline Images support |
||
18 | |||
19 | All options is currently done through the [[/setoption]] command. |
||
20 | |||
21 | To enable, type: |
||
22 | |||
23 | <pre> |
||
24 | 6 | Per Amundsen | /setoption InlineImages UseInlineImages True |
25 | 1 | Per Amundsen | </pre> |
26 | |||
27 | To disable, type: |
||
28 | |||
29 | <pre> |
||
30 | 6 | Per Amundsen | /setoption InlineImages UseInlineImages False |
31 | 1 | Per Amundsen | </pre> |
32 | |||
33 | _When the support is disabled, all inline images is removed from all text buffers._ |
||
34 | |||
35 | h2. Enabling animate gifs |
||
36 | |||
37 | To enable, type: |
||
38 | |||
39 | <pre> |
||
40 | /setoption InlineImages AnimateInlineImages True |
||
41 | </pre> |
||
42 | |||
43 | To disable, type: |
||
44 | |||
45 | <pre> |
||
46 | /setoption InlineImages AnimateInlineImages False |
||
47 | </pre> |
||
48 | |||
49 | _When the support is disabled, all gifs will stop animating and show the first frame as a static image._ |
||
50 | |||
51 | h2. Changing the maximum image size in bytes |
||
52 | |||
53 | By default only images smaller than 2 megabytes is downloaded, this can be changed by typing: |
||
54 | |||
55 | <pre> |
||
56 | /setoption InlineImages InlineImagesMaxBytes N |
||
57 | </pre> |
||
58 | |||
59 | Where N is the new maximum number of bytes to allow. |
||
60 | |||
61 | h2. Changing the image sizes |
||
62 | |||
63 | 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: |
||
64 | |||
65 | <pre> |
||
66 | /setoption InlineImages InlineImagesMaxLines N |
||
67 | </pre> |
||
68 | |||
69 | Where N is the new maximum number of lines before the image is resized. |
||
70 | |||
71 | _The images keeps their aspect ration when resized, resizing by width is not supported, so a very wide image could be cut off._ |
||
72 | |||
73 | h2. Cache |
||
74 | |||
75 | 3 | Per Amundsen | All downloaded images are saved to [[$scriptdir]]\Cache\Preview, the folder is cleared automatically when AdiIRC is closed. |
76 | 1 | Per Amundsen | |
77 | Some option for handling cache may be added in the future. |
||
78 | |||
79 | h2. Feedback |
||
80 | |||
81 | Would like to hear how slow/fast loading and painting the images is, and whether cpu usage is acceptable. |
||
82 | |||
83 | 2 | Per Amundsen | Since Taskbar memory usage is not accurate at all for .NET programs, the output from the [[/imagecache]] command could be useful to determine memory usage. |
84 | 1 | Per Amundsen | |
85 | 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. |
||
86 | 5 | Per Amundsen | |
87 | Information whether everything works as expected without inline images enabled would also be useful. |