I'm trying to upload .bmp's, I have imagemagick active and I'm getting "unsupported file type" when they try to upload a .bmp.
How to I approve .bmp's? Its set to allow it in media manager but I don't see any place in jomsocial to check for the same.
Hi there
GD2 image processor shouldnt by default support BMP images.
You should contact your host just to make sure.
As for layout, please try it with default template first.
Thanks
as I stated before I have imagemagick turned on in jomsocial, media manager does the .bmp's just fine which I'm fairly sure uses gd2.
as for the layout, when I tried protostar NOTHING happened after the file uploaded, no error report, nothing... but even show, how can the template make it stack on error, but be fine on initial file selection?
Hi Jowwow
I was referring to the default Jomsocial template, not protostar of joomla.
as for .bmp image i will have to raise this to developer level of the support. One of devs will reach you soon.
Thanks
Hi,
For enable the bmp, you can add the bmp support in this file components/com_community/helpers/image.php at this line :
$validType = array('image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg');
The game that my members play save screenshots in .bmp format so the idea is they will upload it and imagemagick will convert it to .jpg. I don't use gd afaik, ( have /usr/bin/convert ) set in config.
please try my solution above, add the bmp header extension there.. hopefully the imagick can run it well
is it possible to put this as an override somehow so that I don't lose it on update?
also to let you know loading .bmp's in media manager works great.
one last thing... Dimas wouldn't it be prudent to have something like
if ( $imagemagick ) {
$validType = array('image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg' , 'image/bmp');
} else {
$validType = array('image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg');
}
I just tried it and it doesn't work... interestingly enough on the "wall" photo uploader it will upload the file and then give the error but on the 'photos->upload a photo' it immediately says invalid file type.
this is using
$validType = array('image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/bmp');
Please try use this :
$validType = array('image/png', 'image/x-png', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-ms-bmp');
aah.. seems the bmp is not working for Jomsocial version, like I said before I suggest you user jpg/png for this, we cant help further for bmp issue...