Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

jpg and jpeg..

  • Bj#rn Christiansen
  • Bj#rn Christiansen's Avatar Topic Author
  • Offline
  • New Member
More
15 years 11 months ago #20511 by Bj#rn Christiansen
jpg and jpeg.. was created by Bj#rn Christiansen
I have SIG pro, and I love it.. but..
I upload some pictures from my phone, and thay are jpeg files, and I can use them all over i joomla, except in SIG. Yes I can rename the pictures, but then thay wont work in my blog. My phone saves the pictures in jpeg, and thay get uploaded in jpeg.
Can this be fixed, or?

// Bjørn Christiansen
ChrisB

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
15 years 11 months ago - 15 years 11 months ago #20512 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: jpg and jpeg..
Hi there!

Can you please post a direct link to the gallery
and attach one of the .jpeg images to check it out?

Thank you!

UPDATE

open to edit the file jwsigpro.php and find the line 138
if((substr(strtolower($f),-3) == 'jpg') || (substr(strtolower($f),-3) == 'gif') || (substr(strtolower($f),-3) == 'png')) {
and change it with
if((substr(strtolower($f),-3) == 'jpg') || (substr(strtolower($f),-4) == 'jpeg') || (substr(strtolower($f),-3) == 'gif') || (substr(strtolower($f),-3) == 'png')) {

Let me know about the result.

Thank you

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

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

  • Bj#rn Christiansen
  • Bj#rn Christiansen's Avatar Topic Author
  • Offline
  • New Member
More
15 years 11 months ago #20513 by Bj#rn Christiansen
Replied by Bj#rn Christiansen on topic Re: jpg and jpeg..
Nope... didt work..

It was allso in a different line 138

direkt link to the galleri chrisb.dk/index.php?option=com_content&view=article&id=10:blog-photos&catid=5:misc&Itemid=9

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
15 years 11 months ago #20514 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: jpg and jpeg..
Yes, you are right
The hack I gave was wrong, but I fixed it.
You can retry it!

I checked it me too using .jpg, .jpeg, .gif and .png images
and it seems ok now!

Thank you!

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

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

  • Bj#rn Christiansen
  • Bj#rn Christiansen's Avatar Topic Author
  • Offline
  • New Member
More
15 years 10 months ago #20515 by Bj#rn Christiansen
Replied by Bj#rn Christiansen on topic Re: jpg and jpeg..
Its not genereting the thumpsnails.. But I can click on the text, and the images come up.

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

  • Bj#rn Christiansen
  • Bj#rn Christiansen's Avatar Topic Author
  • Offline
  • New Member
More
15 years 10 months ago #20516 by Bj#rn Christiansen
Replied by Bj#rn Christiansen on topic Solved,, Re: jpg and jpeg..
added this in line 285:
case 'jpeg':
$image_type = 2;
break;

and changed line 271 to:
$format = substr($images[$a], -4);

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
15 years 10 months ago #20517 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: jpg and jpeg..
:-[ My mistake...
Thank you for the tip!
The generated thumb has the rights headers and this is the reason why the browser parses it right!

Thank you!

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

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


Powered by Kunena Forum