Author Topic: file .jpeg resizing  (Read 6775 times)

hpolimar

  • Beginner
  • *
  • Posts: 12
file .jpeg resizing
« on: May 22, 2012, 11:06:24 am »
hi!
i found something strange but i could not test it with a fresh new installation:

if for a product i upload a file .jpeg (and not .jpg), the image uploaded will be renamed to file.jpeg.jpg and so the resized one, but automatically virtuemart in the image resized location, put the filename as .jpeg instead of .jpeg.jpg, so the image is not displayed cause of wrong filename

emicoma

  • Beginner
  • *
  • Posts: 15
Re: file .jpeg resizing
« Reply #1 on: August 07, 2013, 23:07:03 pm »
Hi
Have you found out ?
tried to modify img2thumb.php but no succes for now...

davidk20

  • Beginner
  • *
  • Posts: 5
Re: file .jpeg resizing
« Reply #2 on: October 02, 2013, 10:46:31 am »
Hello,

Did you find a fix for this? I am also having the same problem.

Cheers,
Dave

davidk20

  • Beginner
  • *
  • Posts: 5
Re: file .jpeg resizing
« Reply #3 on: October 02, 2013, 11:32:50 am »
I think I have found a fix.

Before uploading your jpeg files you must make sure that the file extension says .jpg and NOT .jpeg.

d0ublezer0

  • Jr. Member
  • **
  • Posts: 197
Re: file .jpeg resizing
« Reply #4 on: June 09, 2016, 12:25:31 pm »
Hi! I think it is not normal.
.jpeg and .jpg have the same content inside them.
Why not to allow .jpeg extension? And process him as .jpg?

d0ublezer0

  • Jr. Member
  • **
  • Posts: 197
Re: file .jpeg resizing
« Reply #5 on: May 15, 2020, 14:02:21 pm »
After almost 8 years problem is still here. Why just not allow to resize .jpeg files?

loppan

  • Jr. Member
  • **
  • Posts: 151
    • CRASHDÏET Official Website
Re: file .jpeg resizing
« Reply #6 on: May 15, 2020, 15:40:50 pm »
After almost 8 years problem is still here. Why just not allow to resize .jpeg files?
Yeah, you're right, I ran into this problem last week. Took a while to figure out. I already have a habit of saving as .jpg (because DOS was my first OS :D) so I haven't noticed this until now, when I instead let a team member edit some product pics for me, and he delivered them as .jpeg.

A fix would be great in case I have already forgotten about this the next time I receive files from someone else :D

Best

Peter

Sent from my S41 using Tapatalk


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27798
  • Always on vacation
    • Jenkin Hill Internet
Re: file .jpeg resizing
« Reply #7 on: May 15, 2020, 15:54:47 pm »
.jpg was simply born out of a limitation that existed by original versions of Windows or DOS that could only use a 3 letter suffix, and by default has become is actually the most common format over that of .jpeg.  I have not received .jpeg files from any of my clients for probably at least 10 years now and for my own photography, I generally use RAW and finally save as PNG-24 or .jpg

Nobody seems to have mentioned this on the forum for the last 4 years before today so I suspect it is of no importance to other VM users.  Pleease feel free to donate conversion code to the core if you feel it is important enough.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.8.4.10335 on Joomla 3.9.19 PHP 7.3.18

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 552
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: file .jpeg resizing
« Reply #8 on: May 15, 2020, 23:14:23 pm »
Kelvyn:

Thanks


loppan:

I don't see in Joomla in setup for Media for Legal Image Extensions (File Types) - "jpeg" extension.
Why do you think this is a mistake, if .jpeg don't resizing?

I would never use the jpeg extension because I know it's not in the basic settings
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

d0ublezer0

  • Jr. Member
  • **
  • Posts: 197
Re: file .jpeg resizing
« Reply #9 on: May 18, 2020, 18:15:19 pm »
This is because when you add and save image, the actual file extension of thumbnail changes to .JPG, when saving to disk. And at the same time in the database the string is saved as .JPEG.
As a result, we get a link to a non-existent thumbnail.
If you open html page code and replace .jpeg with .jpg on broken link, then the image is displayed correctly. Check it out for yourself.
Isn't that a mistake?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2911
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: file .jpeg resizing
« Reply #10 on: May 19, 2020, 08:01:37 am »
Naming the thumbnail with .jpeg is a glitch, probably well meant but not 100% executed. Right now You have a workaround. Rename all your .jpeg files before upload to jpg.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)

d0ublezer0

  • Jr. Member
  • **
  • Posts: 197
Re: file .jpeg resizing
« Reply #11 on: July 20, 2020, 15:52:42 pm »
Step by step instructions on how to get a .JPEG file in 2020:

1. Take iPhone in your right hand. Or with your left hand, if you like.
2. Take a photo of a sleeping cat or someone else.
3. Write an email and attach this photo.
4. You will get a .jpeg extension for the attached file.
5. Profit?

Or your business partners can install Bitrix as a CMS and provide you with XML export of their products.
All image files in this XML feed will be .JPEG

No need to tell me about file naming standards and glitches. Sometimes a situation arises that you cannot influence. Our developers must find a workaround to solve this problem: VM does not recognize .JPEG files. .JPG only

Is it so hard to add two lines of code?

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 552
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: file .jpeg resizing
« Reply #12 on: July 20, 2020, 16:01:32 pm »
Sometimes yes, I think :D

My grandma said me - when I don't want to, it's worse than when I can't...
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3683
  • using Matomo instead of Google Analytics
Re: file .jpeg resizing
« Reply #13 on: July 20, 2020, 21:36:05 pm »
VM does not recognize .JPEG files. .JPG only

Perhaps this does what you want for your special case: https://github.com/piliop/Vm-create-jpeg-img-thubs
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

d0ublezer0

  • Jr. Member
  • **
  • Posts: 197
Re: file .jpeg resizing
« Reply #14 on: July 21, 2020, 07:29:08 am »
Perhaps this does what you want for your special case: https://github.com/piliop/Vm-create-jpeg-img-thubs
The best answer about this issue!
Thank you!