- Posts: 12299
- Thank you received: 2545
Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released
The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.
Solved Kunena 5.1.1.6 Hochkant Bilder werden nicht mehr gedreht
Important! Always create a backup before you make any changes to your website!
Please Log in or Create an account to join the conversation.
Die Browser-Abfrage habe ich jetzt auch in die aktuelle image.php eingebaut. Funktioniert bisher ohne Probleme. Wie schon gesagt müsste wenn nötig die Abfrage um weitere Browser erweitert werden, die die Bilder selber drehen. Und die Browserversions-Abfrage wäre auch sinnvoll.
Hier die aktuelle Version:
public static function correctImageOrientation($filename)
{
$testForJpg = @getimagesize($filename);
if ($testForJpg[2] == 2)
{
if (function_exists('exif_read_data'))
{
$deg = 0;
$exif = @exif_read_data($filename);
$flip = '';
$img = '';
if ($exif && isset($exif))
{
$orientation = $exif;
if ($orientation != 1)
{
$img = @imagecreatefromjpeg($filename);
switch ($orientation)
{
case 1: // Nothing
$deg = 0;
$flip = 0;
break;
case 2: // Horizontal flip
$deg = 0;
$flip = 1;
break;
case 3: // 180 rotate left
$deg = 180;
$flip = 0;
break;
case 4: // Vertical flip
$deg = 0;
$flip = 2;
break;
case 5: // Vertical flip + 90 rotate
$deg = 90;
$flip = 2;
break;
case 6: // 270 rotate left
$deg = 270;
$flip = 0;
break;
case 7: // Horizontal flip + 90 rotate
$deg = 90;
$flip = 1;
break;
case 8: // 90 rotate left
$deg = 90;
$flip = 0;
break;
}
}
}
// do not rotate if browser is Chrome or Opera
if ( (JFactory::getApplication()->client->browser == 19) || // CHROME
(JFactory::getApplication()->client->browser == 21) ) // OPERA
{
$deg = 0;
}
if ($deg > 0)
{
$img = @imagerotate($img, $deg, 0);
}
if ($flip != 0)
{
if ($flip == 1)
{
@imageflip($img, IMG_FLIP_HORIZONTAL);
}
else
{
@imageflip($img, IMG_FLIP_VERTICAL);
}
}
@imagejpeg($img, $filename, 95);
}
}
}
Please Log in or Create an account to join the conversation.
- Posts: 12299
- Thank you received: 2545
Vielleicht ist es besser, wenn du dir mal diese Datei ansiehst:
Falls du Crypsis verwendest /components/com_kunena/template/crypsis/assets/js/upload.main.js
Important! Always create a backup before you make any changes to your website!
Please Log in or Create an account to join the conversation.
Mich würde interessieren ob Klsausimausi das Problem inzwischen gelöst hat.
Please Log in or Create an account to join the conversation.
- Klausimausi
-
Topic Author
- Offline
- Senior Member
-
- Posts: 108
- Thank you received: 3
ich habe noch keinen wirklichen guten Tipp für das Problem. Ich kann nur berichten, dass sich die Rückmeldungen dazu aktuell häufen Gerade erzählte mir ein User, dass es mit Win10 und firefox nicht geht... Ich sagte ihm gerade, er möge bitte mal Edge probieren.
Eine andere Userin hatte Probleme bei Chrome und win10. Mit Edge geht es dann allerdings. Bemerkenswert ist nur, dass das Foto von Ihr auf dem Mac bei mir richtig angezeigt wird, in der VM unter Win7 aber um 90grad in die andere Richtung (links) gedreht.... Wenn die User es eingefügt haben, dann sind diese um 180Grad (also nach rechts) gedreht...
Ich bleib am Ball.
Please Log in or Create an account to join the conversation.
danke für deine Rückmeldung. Bei uns im Forum ist es so dass mit Chrome und Opera die Hochkant-Bilder auch um 180 Grad statt um 90 Grad gedreht werden. Mit dem Firefox wird immer richtig gedreht. Wir können allerdings unseren Usern nicht vermitteln dass sie einen bestimmten Browser verwenden sollen.
Ich verwende das Crypsis-Template. Testweise habe ich mal Blue Eagle installiert. Damit funktioniert das Drehen bei allen Browsern einwandfrei. Welches Template verwendest du?
Please Log in or Create an account to join the conversation.