This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/qr_code/main.php
Matthew Barbour eb4292316d Added webp upload and thumbnailing support
Bug fixes and consolidation of various thumbnail and resize functionality
Changed resize/rotate extensions to use replace image event
Added content-disposition header to image responses to provide a human-friendly filename when saving
Added more bulk thumbnail regeneration tools
Tweaks to bulk actions to correct totals when batching items
2019-06-09 14:14:04 -05:00

16 lines
606 B
PHP

<?php
/*
* Name: QR Codes
* Author: Zach Hall <zach@sosguy.net> [http://seemslegit.com]
* Description: Shows a QR Code for downloading an image to cell phones.
* Based on Artanis's Link to Image Extension <artanis.00@gmail.com>
* Further modified by Shish to remove the 7MB local QR generator
* and replace it with a link to google chart APIs
*/
class QRImage extends Extension
{
public function onDisplayingImage(DisplayingImageEvent $event)
{
$this->theme->links_block(make_http(make_link('image/'.$event->image->id.'.'.$event->image->ext)));
}
}