Keyword

A bug with jpeg?

  • valdirljr
  • valdirljr's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #34106 by valdirljr
A bug with jpeg? was created by valdirljr
Hi.

When i upload images from a zip file, with JPEG extension, doesn't displays thumbs.
This happens when i upload JPEG.
Other extensions are ok.
I read the plugin file (sigpro.engine, off version 2.0) and see:
line 197 :
$imagetypes = array('/\.gif$/i', '/\.jpg$/i', '/\.jpeg$/i', '/\.png$/i');

line 282 to 301:
// save the resized copy
							$thumbname = $thbimgfolder.$prefix.substr(md5($srcimgfolder),1,10).$name;
							switch($type) {
								case 1:
									if (function_exists('imagegif')) {
										$success = imagegif($thumb, $site_absolutepath.$thumbname.'.gif');
										$thumb_name = $prefix.$name.'.gif';
									} else {
										$success = imagejpeg($thumb, $site_absolutepath.$thumbname.'.jpg', $jpg_quality);
										$thumb_name = $prefix.$name.'.jpg';
									}
									break;
								case 2:
									$success = imagejpeg($thumb, $site_absolutepath.$thumbname.'.jpg', $jpg_quality);
									$thumb_name = $prefix.$name.'.jpg';
									break;
								case 3:
									$success = imagepng($thumb, $site_absolutepath.$thumbname.'.png');
									$thumb_name = $prefix.$name.'.png';
							}
If i upload a JPEG image, the code does not deal JPEG, just JPG.
The code generated after thumbs created does not works.. .

Who can help me ?

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #34107 by Katia
Replied by Katia on topic Re: A bug with jpeg?
Just change your images from .jpeg to .jpg.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34108 by iddaa
Replied by iddaa on topic Re: A bug with jpeg?
Just change your images from .jpeg to .jpg.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum