Inline Images Options » History » Version 10
Per Amundsen, 05/20/2018 10:17 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 | 9 | Per Amundsen | Up to 5 links is allowed per message, duplicates are removed. |
10 | |||
11 | 1 | Per Amundsen | h2. Testing |
12 | |||
13 | *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.* |
||
14 | |||
15 | I don't recommend testing this in your daily driver, instead download the AdiIRC.exe to a folder somewhere and run it from there. |
||
16 | |||
17 | It can be useful to keep the [[Rawlog Dialog|Rawlog]] open to see any errors when loading images. |
||
18 | |||
19 | h2. Enabling Inline Images support |
||
20 | |||
21 | All options is currently done through the [[/setoption]] command. |
||
22 | |||
23 | To enable, type: |
||
24 | |||
25 | <pre> |
||
26 | 6 | Per Amundsen | /setoption InlineImages UseInlineImages True |
27 | 1 | Per Amundsen | </pre> |
28 | |||
29 | To disable, type: |
||
30 | |||
31 | <pre> |
||
32 | 6 | Per Amundsen | /setoption InlineImages UseInlineImages False |
33 | 1 | Per Amundsen | </pre> |
34 | |||
35 | _When the support is disabled, all inline images is removed from all text buffers._ |
||
36 | |||
37 | h2. Enabling animate gifs |
||
38 | |||
39 | To enable, type: |
||
40 | |||
41 | <pre> |
||
42 | /setoption InlineImages AnimateInlineImages True |
||
43 | </pre> |
||
44 | |||
45 | To disable, type: |
||
46 | |||
47 | <pre> |
||
48 | /setoption InlineImages AnimateInlineImages False |
||
49 | </pre> |
||
50 | |||
51 | _When the support is disabled, all gifs will stop animating and show the first frame as a static image._ |
||
52 | |||
53 | h2. Changing the maximum image size in bytes |
||
54 | |||
55 | By default only images smaller than 2 megabytes is downloaded, this can be changed by typing: |
||
56 | |||
57 | <pre> |
||
58 | /setoption InlineImages InlineImagesMaxBytes N |
||
59 | </pre> |
||
60 | |||
61 | Where N is the new maximum number of bytes to allow. |
||
62 | |||
63 | h2. Changing the image sizes |
||
64 | |||
65 | 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: |
||
66 | |||
67 | <pre> |
||
68 | /setoption InlineImages InlineImagesMaxLines N |
||
69 | </pre> |
||
70 | |||
71 | Where N is the new maximum number of lines before the image is resized. |
||
72 | |||
73 | _The images keeps their aspect ration when resized, resizing by width is not supported, so a very wide image could be cut off._ |
||
74 | |||
75 | 10 | Per Amundsen | h2. Excluding channels |
76 | |||
77 | Channels can be excluded by typing: |
||
78 | |||
79 | <pre> |
||
80 | /setoption InlineImages InlineImagesExclude #chan1,#chan2 |
||
81 | </pre> |
||
82 | |||
83 | All excluded channels must be added each time. |
||
84 | |||
85 | _This is a temporary system._ |
||
86 | |||
87 | 1 | Per Amundsen | h2. Cache |
88 | |||
89 | 3 | Per Amundsen | All downloaded images are saved to [[$scriptdir]]\Cache\Preview, the folder is cleared automatically when AdiIRC is closed. |
90 | 1 | Per Amundsen | |
91 | Some option for handling cache may be added in the future. |
||
92 | |||
93 | h2. Feedback |
||
94 | |||
95 | Would like to hear how slow/fast loading and painting the images is, and whether cpu usage is acceptable. |
||
96 | |||
97 | 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. |
98 | 1 | Per Amundsen | |
99 | 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. |
||
100 | 5 | Per Amundsen | |
101 | Information whether everything works as expected without inline images enabled would also be useful. |
||
102 | 8 | Per Amundsen | |
103 | Whether cpu usage goes down when there is no visible animated gifs. |
||
104 | |||
105 | Whether all images are inserted in the correct place underneath the link. |