This isn't quite what you want but it is close. It is some code I hacked
a while ago to convert pdf files to png files for html export. You can
probably adapt this to get the sizes that you want by modifying the
shell command.
(defun my-link-format (link contents info)
(let ((type
John Kitchin writes:
> (defun my-link-format (link contents info)
> (let ((type (org-element-property :type link))
> (path (org-element-property :path link)))
> (cond
> ((and
>(string= type "file")
>(string-match "\.pdf" path))
>
Hi,
Is there some package that provides a publishing function I can use to
automatically publish images to various sizes? Probably something that
wraps around imagemagick's 'convert' command?
When I publish images to my website, I want them to be available in
various sizes, so that I can choose