.jpg changes to .jpeg when batch added to the database.
| Author |
Message |
mpyusko


Joined: Mar 09, 2007 Posts: 35 Location: USA
|
Post subject: .jpg changes to .jpeg when batch added to the database. Posted: Wed Jan 02, 2008 4:58 pm |
|
I have 2 sites I am working with. One is Dragonfly, and the other is just plain Coppermine. In one case I am using the same images on both sites. They are hosted on the same server so I symlinked a DF user gallery to the CPG location.
When I upload pictures, I FTP them to the CPG site's folder and they have are .jpg. I batch add them and everything goes fine. When I go to batch add them to DF's gallery, they are added and all the extensions change to .jpeg. WHY? Where is this set, and what can I do to fix it? I did a linux "rename" to switch them back, and then ran a mysql "update" to fix the database. I would like to prevent it from happening in the future though.
CPG does not touch file extensions, but DF does, therefore I assume this is a DF issue.
_________________ -mpyusko
mpyusko's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
Eestlane


Joined: Apr 06, 2005 Posts: 1406 Location: Estonia
|
Post subject: Re: .jpg changes to .jpeg when batch added to the database. Posted: Wed Jan 02, 2008 5:09 pm |
|
I had same problem with Downloads_Pro on my site lately :S
Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0.63/5.0.67/5.2.8/9.2.1 |
|
| Back to top |
|
 |
mpyusko


Joined: Mar 09, 2007 Posts: 35 Location: USA
|
Post subject: Re: .jpg changes to .jpeg when batch added to the database. Posted: Wed Jan 02, 2008 5:14 pm |
|
I suppose I should add the specs for the site I am using...
_________________ -mpyusko
mpyusko's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3677 Location: Melbourne, AU
|
Post subject: Re: .jpg changes to .jpeg when batch added to the database. Posted: Wed Jan 02, 2008 5:35 pm |
|
php.net/image_type_to_extension
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) MySQL 5.1 / PHP 5.3 / NextGen() |
|
| Back to top |
|
 |
mpyusko


Joined: Mar 09, 2007 Posts: 35 Location: USA
|
|
| Back to top |
|
 |
rlgura


Joined: Mar 27, 2006 Posts: 1148 Location: Cleveland, OH USA
|
|
| Back to top |
|
 |
mpyusko


Joined: Mar 09, 2007 Posts: 35 Location: USA
|
|
| Back to top |
|
 |
rlgura


Joined: Mar 27, 2006 Posts: 1148 Location: Cleveland, OH USA
|
|
| Back to top |
|
 |