<categoryname>message.attachment</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue><![CDATA[1]]></defaultvalue>
- <enableoptions>attachment_thumbnail_height,attachment_thumbnail_width</enableoptions>
+ <enableoptions>attachment_obtain_dimensions,attachment_thumbnail_height,attachment_thumbnail_width</enableoptions>
+ </option>
+ <option name="attachment_obtain_dimensions">
+ <categoryname>message.attachment</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue><![CDATA[0]]></defaultvalue>
</option>
<option name="attachment_thumbnail_height">
<categoryname>message.attachment</categoryname>
// create standard thumbnail
if ($attachment->width > ATTACHMENT_THUMBNAIL_WIDTH || $attachment->height > ATTACHMENT_THUMBNAIL_HEIGHT) {
$thumbnailLocation = $attachment->getThumbnailLocation();
- $thumbnail = $adapter->createThumbnail(ATTACHMENT_THUMBNAIL_WIDTH, ATTACHMENT_THUMBNAIL_HEIGHT, false);
+ $thumbnail = $adapter->createThumbnail(ATTACHMENT_THUMBNAIL_WIDTH, ATTACHMENT_THUMBNAIL_HEIGHT, ATTACHMENT_OBTAIN_DIMENSIONS);
$adapter->writeImage($thumbnail, $thumbnailLocation);
if (file_exists($thumbnailLocation) && ($imageData = @getImageSize($thumbnailLocation)) !== false) {
$updateData['thumbnailType'] = $imageData['mime'];
min-height: ~"@{wcf_option_attachment_thumbnail_height}px";
min-width: ~"@{wcf_option_attachment_thumbnail_width}px";
position: relative;
- vertical-align: top;
+ text-align: center;
+
+ > img {
+ margin-left: 0px !important;
+ }
> a {
display: inline-block;
<item name="wcf.acp.option.recaptcha_privatekey"><![CDATA[Private-API-Key]]></item>
<item name="wcf.acp.option.category.message.attachment"><![CDATA[Dateianhänge]]></item>
<item name="wcf.acp.option.attachment_enable_thumbnails"><![CDATA[Vorschaugrafiken von hochgeladenen Bilder erzeugen]]></item>
+ <item name="wcf.acp.option.attachment_obtain_dimensions"><![CDATA[Bildformat beim Erzeugen von Vorschaugrafiken beibehalten]]></item>
<item name="wcf.acp.option.attachment_thumbnail_height"><![CDATA[Höhe der Vorschaugrafiken]]></item>
<item name="wcf.acp.option.attachment_thumbnail_width"><![CDATA[Breite der Vorschaugrafiken]]></item>
<item name="wcf.acp.option.attachment_storage"><![CDATA[Speicherort der Dateianhänge]]></item>
<item name="wcf.acp.option.recaptcha_privatekey"><![CDATA[Private API Key]]></item>
<item name="wcf.acp.option.category.message.attachment"><![CDATA[Attachments]]></item>
<item name="wcf.acp.option.attachment_enable_thumbnails"><![CDATA[Create thumbnails for uploaded images]]></item>
+ <item name="wcf.acp.option.attachment_obtain_dimensions"><![CDATA[Obtain thumbnail dimensions]]></item>
<item name="wcf.acp.option.attachment_thumbnail_height"><![CDATA[Thumbnail Height in Pixel]]></item>
<item name="wcf.acp.option.attachment_thumbnail_width"><![CDATA[Thumbnail Width in Pixel]]></item>
<item name="wcf.acp.option.attachment_storage"><![CDATA[Storage Location]]></item>