Fixed scaling with the theme patch.
This commit is contained in:
parent
c7852423d4
commit
fbe0df29ed
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
class FlashFileHandler extends DataHandlerExtension {
|
class FlashFileHandler extends DataHandlerExtension {
|
||||||
protected function create_thumb($hash) {
|
protected function create_thumb($hash) {
|
||||||
// FIXME: scale image, as not all boards use 192x192
|
|
||||||
copy("ext/handle_flash/thumb.jpg", warehouse_path("thumbs", $hash));
|
copy("ext/handle_flash/thumb.jpg", warehouse_path("thumbs", $hash));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
class MP3FileHandler extends DataHandlerExtension {
|
class MP3FileHandler extends DataHandlerExtension {
|
||||||
protected function create_thumb($hash) {
|
protected function create_thumb($hash) {
|
||||||
// FIXME: scale image, as not all boards use 192x192
|
|
||||||
copy("ext/handle_mp3/thumb.jpg", warehouse_path("thumbs", $hash));
|
copy("ext/handle_mp3/thumb.jpg", warehouse_path("thumbs", $hash));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,6 @@ class SVGFileHandler implements Extension {
|
|||||||
// exec("convert images/{$ha}/{$hash}[0] -geometry {$w}x{$h} -quality {$q} jpg:thumbs/{$ha}/{$hash}");
|
// exec("convert images/{$ha}/{$hash}[0] -geometry {$w}x{$h} -quality {$q} jpg:thumbs/{$ha}/{$hash}");
|
||||||
// }
|
// }
|
||||||
// else {
|
// else {
|
||||||
// FIXME: scale image, as not all boards use 192x192
|
|
||||||
copy("ext/handle_svg/thumb.jpg", warehouse_path("thumbs", $hash));
|
copy("ext/handle_svg/thumb.jpg", warehouse_path("thumbs", $hash));
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user