So many ways to resize an image... hm.jack4ya wrote:
Another idea (ow sweet lord...) "Allow on-the-fly resizing of uploaded images" would it be a good or bad idea to have that as param?
An option here a plugin there and params in the template... i believe it will result in a param chaos.
If you set in the preferences "Allow on-the-fly resizing of uploaded images" to true and additionally have a param when calling the content block in the template where this is set to false... hm, wich one do you think should be the one that finally (dis)allows the image resizing?
The preference or the param?
But your're right. It is no bad idea to define image resizing for each block. So one block may be resized to 10x10 the other block to 120x300 or whatever you need the image size for a certain block.
The reason why i don't want to add any further image transform stuff is ... that i just don't want to reinvent the wheel since there are some other ways to realize this much better than i would be able to integrate it into the module.
E.g.: Even the filepicker was unnecesary to be built in into the module. But there was no other solution yet. The projects FileBrowser or NeoFilePicker sound really promising and might be exactly what i needed here but there are no files released yet.
If there ever will be a release and the modules will fit the needs i will think about removing the fileicker and use the other modules instead.
(To keep the content type as small as possible and have some kind of general filebrowsing - at the moment there are 4 (four!!!) different ways to manage files: FileManager, ImageManager, TinyMCE FilePicker, AdvancedContent Filepicker ... and maybe some more ::) it would be nice to have one unique browser that provides all necessary file operations no matter what module is used)
Yeah this is the default icon that will be displayed if a) filepicker style is set to "Filenames" or b) the thumbnail could not be found/created or c) the file is no image.jack4ya wrote: - thumb is nicely generated on upload, not displayed in picker
- icon /modules/FileManager/icons/themes/default/extensions/32px/jpg.png
or /modules/FileManager/icons/themes/default/extensions/32px/gif.png is shown
- more will follow
I had a similar problem with the portal software Liferay where it did not accept a file to be an image. (Although it was)
I had to convert the image with another image processor before it was accepted.
Since the filepicker uses mime-type functions to check if a file is an image or not it may be that the image contains faulty header information so the filepicker displays it as just a file. The reason why it although has the right filetype icon is because the filetype icon will be created by the FileManager. The FileManager only uses the file extension to determine the filetype. Therefore the filepicker dispays it as a file with filetype icon "gif-file" instead of the thumbnail.
Maybe your host has no mime-type libaries installed or they are just deactivated ... no, wait, in this case the filepicker would only check for the right file extension. And if type is set to image by default the allowed file extensions are 'jpg','jpeg','gif','png','tif','tiff'. So if mime-type is not available it should although work.
Only if mime-type settings of your server are not configured properly or if the image has a damaged or whatever faulty header it may result in what you have now.
So try the following: in your template set the param type to file, reload the edit page, browse to the dir where the image is and look what mime-type is shown in the filepicker for that image. Just to make sure that this is not a mime-type issue.