Project

General

Profile

Inline Images Options » History » Version 21

Per Amundsen, 05/24/2018 09:56 AM

1 4 Per Amundsen
{{>toc}}
2
3 1 Per Amundsen
h1. Inline Images
4
5 18 Per Amundsen
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.
6 1 Per Amundsen
7
Up to 5 links is allowed per message, duplicates in a message are removed.
8 12 Per Amundsen
9 13 Per Amundsen
All links are matches against a whilelist of wildcards or regular expressions when enclosed in a // pattern.
10 1 Per Amundsen
11 13 Per Amundsen
h2. Use inline images
12 1 Per Amundsen
13 13 Per Amundsen
Enable or disable Inline Images support.
14 1 Per Amundsen
15 13 Per Amundsen
_When the support is disabled, all inline images is removed from all text buffers._
16 1 Per Amundsen
17 13 Per Amundsen
_NB: Windows in the include/exclude list ignores this options._
18 1 Per Amundsen
19 13 Per Amundsen
h2. Use animate gifs
20 1 Per Amundsen
21 13 Per Amundsen
Enable or disable animated gifs support.
22 6 Per Amundsen
23 13 Per Amundsen
_When the support is disabled, all gifs will stop animating and show the first frame as a static image._
24 1 Per Amundsen
25 13 Per Amundsen
h2. Max file size
26 1 Per Amundsen
27 13 Per Amundsen
Changes the maximum file/image size to download.
28 6 Per Amundsen
29 13 Per Amundsen
h2. Max file cache size
30 1 Per Amundsen
31 16 Per Amundsen
Sets the maximum size of the cache folder where images are downloaded to, the folder is located in [[$adiircdir]]\Cache\Preview.
32 1 Per Amundsen
33 13 Per Amundsen
AdiIRC will periodically clean the folder to match the max cache size.
34 1 Per Amundsen
35 13 Per Amundsen
h2. Max number of lines
36 1 Per Amundsen
37 13 Per Amundsen
Sets the maximum lines of text using the current font the image can occupy before being resized.
38 1 Per Amundsen
39 13 Per Amundsen
_The images keeps their aspect ration when resized, resizing by width is not supported, so a very wide image could be cut off._
40 1 Per Amundsen
41 17 Per Amundsen
h2. Download from links with matching wildcard/regex patterns
42 1 Per Amundsen
43 13 Per Amundsen
List of allowed patterns to match with links.
44 1 Per Amundsen
45 13 Per Amundsen
*Wildard Example*
46 1 Per Amundsen
47
<pre>
48 13 Per Amundsen
Matching https://i.imgur.com/Tb9LSuc.png using various wildcard pattern.
49
50
https://i.imgur.com/*
51
*i.imgur.com/*
52
*://i.imgur.com/*
53 1 Per Amundsen
</pre>
54
55 13 Per Amundsen
*Regex Example*
56 1 Per Amundsen
57
<pre>
58 13 Per Amundsen
Matching https://i.imgur.com/Tb9LSuc.png using various regex pattern.
59
60
/https\:\/\/i\.imgur\.com\/.*/
61
/.*i.*imgur.*com/.*/
62
/.*\:\/\/i\.imgur\.com\/.*/
63 19 Per Amundsen
64 20 Per Amundsen
Matching any image on any hostname using a regex pattern.
65 19 Per Amundsen
/.*\.(?:jpe?g|gif|png|tiff|ico)$/
66 1 Per Amundsen
</pre>
67
68 21 Per Amundsen
_Patterns are only matching against links already captured by AdiIRC._
69 10 Per Amundsen
70 13 Per Amundsen
h2. Disable inline images for channels/users
71 10 Per Amundsen
72 13 Per Amundsen
Channels or users windows excluded from downloading images.
73 10 Per Amundsen
74 13 Per Amundsen
_Per server settings can be added using network:#channel syntax._
75 10 Per Amundsen
76 13 Per Amundsen
h2. Always inline images for channels/users
77 10 Per Amundsen
78 13 Per Amundsen
Always download images for some channels/users windows.
79 10 Per Amundsen
80 13 Per Amundsen
_Per server settings can be added using network:#channel syntax._
81 1 Per Amundsen
82 13 Per Amundsen
_These windows ignores/overrides the "Use inline images" option._
83 1 Per Amundsen
84
h2. Feedback
85 13 Per Amundsen
86
It can be useful to keep the [[Rawlog Dialog|Rawlog]] open to see any errors when loading images.
87 1 Per Amundsen
88
Would like to hear how slow/fast loading and painting the images is, and whether cpu usage is acceptable.
89
90 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.
91 1 Per Amundsen
92
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.
93 5 Per Amundsen
94
Information whether everything works as expected without inline images enabled would also be useful.
95 8 Per Amundsen
96
Whether cpu usage goes down when there is no visible animated gifs.
97
98
Whether all images are inserted in the correct place underneath the link.