Project

General

Profile

Inline Images Options » History » Revision 13

Revision 12 (Per Amundsen, 05/20/2018 10:31 PM) → Revision 13/44 (Per Amundsen, 05/24/2018 07:30 AM)

{{>toc}} 

 h1. Inline Images 

 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. 

 Support for setting custom domains and including/excluding channels may be added later. 

 Up to 5 links is allowed per message, duplicates in a message are removed. 

 All h2. Testing 

 *When enabled, all links ending with a image file extension will be downloaded, so don't enable if you are matches against a whilelist of wildcards or regular expressions when enclosed on channels/networks you don't trust.* 

 I don't recommend testing this in your daily driver, instead download the AdiIRC.exe to a // pattern. folder somewhere and run it from there. 

 It can be useful to keep the [[Rawlog Dialog|Rawlog]] open to see any errors when loading images. 

 h2. Use inline images 

 Enable or disable Enabling Inline Images support. support 

 All options is currently done through the [[/setoption]] command. 

 To enable, type: 

 <pre> 
 /setoption InlineImages UseInlineImages True 
 </pre> 

 To disable, type: 

 <pre> 
 /setoption InlineImages UseInlineImages False 
 </pre> 

 _When the support is disabled, all inline images is removed from all text buffers._ 

 _NB: Windows in the include/exclude list ignores this options._ 

 h2. Use Enabling animate gifs 

 Enable or disable animated gifs support. To enable, type: 

 <pre> 
 /setoption InlineImages AnimateInlineImages True 
 </pre> 

 To disable, type: 

 <pre> 
 /setoption InlineImages AnimateInlineImages False 
 </pre> 

 _When the support is disabled, all gifs will stop animating and show the first frame as a static image._ 

 h2. Max file size 

 Changes Changing the maximum file/image image size to download. in bytes 

 h2. Max file cache size By default only images smaller than 2 megabytes is downloaded, this can be changed by typing: 

 Sets <pre> 
 /setoption InlineImages InlineImagesMaxBytes N 
 </pre> 

 Where N is the new maximum size number of bytes to allow. 

 h2. Changing the cache folder located image sizes 

 By default all images which cannot fit in [[$scriptdir]]\Cache\Preview. 

 AdiIRC will periodically clean 20 lines using the folder to match current font is downsized, the max cache size. 

 h2. Max number of lines can be changed by typing: 

 Sets <pre> 
 /setoption InlineImages InlineImagesMaxLines N 
 </pre> 

 Where N is the new maximum number of lines of text using before the current font the image can occupy before being is resized. 

 _The images keeps their aspect ration when resized, resizing by width is not supported, so a very wide image could be cut off._ 

 h2. Download Excluding channels 

 Channels can be excluded from links with matching wildcard/regex pattern downloading images by typing: 

 List of allowed patterns to match with links. 

 *Wildard Example* 

 <pre> 
 Matching https://i.imgur.com/Tb9LSuc.png using various wildcard pattern. 

 https://i.imgur.com/* /setoption InlineImages InlineImagesExclude #chan1,#chan2 
 *i.imgur.com/* 
 *://i.imgur.com/* 
 </pre> 

 *Regex Example* 

 <pre> 
 Matching https://i.imgur.com/Tb9LSuc.png using various regex pattern. 

 /https\:\/\/i\.imgur\.com\/.*/ 
 /.*i.*imgur.*com/.*/ 
 /.*\:\/\/i\.imgur\.com\/.*/ 
 </pre> 

 _Patterns are only matching against urls already captured by AdiIRC._ 

 h2. Disable inline images for channels/users 

 Channels or users windows All excluded from downloading images. 

 _Per server settings can channels must be added using network:#channel syntax._ each time. 

 _This is a temporary system._ 

 h2. Always inline Cache 

 All downloaded images for channels/users are saved to [[$scriptdir]]\Cache\Preview, the folder is cleared automatically when AdiIRC is closed. 

 Always download images Some option for some channels/users windows. 

 _Per server settings can handling cache may be added using network:#channel syntax._ 

 _These windows ignores/overrides in the "Use inline images" option._ future. 

 h2. Feedback 

 It can be useful to keep the [[Rawlog Dialog|Rawlog]] open to see any errors when loading images. 

 Would like to hear how slow/fast loading and painting the images is, and whether cpu usage is acceptable. 

 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. 

 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. 

 Information whether everything works as expected without inline images enabled would also be useful. 

 Whether cpu usage goes down when there is no visible animated gifs. 

 Whether all images are inserted in the correct place underneath the link.