Project

General

Profile

Actions

Feature #3996

closed

/inlineimage add new parameter -r

Added by westor (GR) almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/07/2018
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Hello,

I wanna request an new parameter of /inlineimage command that will hide the already inlined image for preview, because now there is not any way to hide certain inlineimages from preview and if someone pastes an porn image or something that i want to hide it then i cannot, it would be nice to have this feature on because we can work on right click to create custom hiding/parsing codes.

Examples:

/inlineimage -c <window> <file|url>

I will provide some useful scripting methods that this is gonna be useful, under Menus Editor on Links you can enter that code:

NOTE: The only 'problem' here is to make -c to work only for the specific right click selected inline image and on others above that used the same file/url to be parsed.

Parse Inline Image: {
  var %p = /.*\.(?:jpe?g|gif|png|tiff|ico)$/
  if ($regex($$1,%p)) { inlineimage -a $$1 }
}
Hide Inline Image: {
  var %p = /.*\.(?:jpe?g|gif|png|tiff|ico)$/
  if ($regex($$1,%p)) { inlineimage -ca $$1 }
}

- Thanks!

Actions

Also available in: Atom PDF