@timkelty - You’re correct, the thumb is driven by the max width and height. I’m looking into your white screen issues and should have some updates out shortly after the new year. I think I’m going to be switching over to using phpThumb on the backend and trying to mask it’s url’s as much as possible.
Mark, Thanks, I appreciate it.
This weekend I installed a brand new copy of EE, the first thing I did was install ‘File’ to see if the image resizing worked…I still had the same blank screen on publishing issue, with no thumb generated. (normal EE resizing via ImageMagick was working fine)
Can’t wait till I can get this one working in its entirety!
One other question: If thumbnail size is controlled with max/height width, I’m assuming the original max height/width behavior gets overridden? Like if I set my thumbnail size to 50x50, is it going to let me upload anything larger than that?
Mark: If the max width and height setting in the uploads screen are for the thumbnail, how do you set the actual image dimensions? In the 2.x versions there was a place to set the max width/height and the thumb width/height (see attached screenshot). I’m trying to figure out how I set up 3.x to achieve the same kind of thing. The idea is that I want to control the size of the full size image and the dimensions of the thumbnail.
I’m working on a project, where for the first time, I’m using the built in category image facility within EE.
As has been mentioned here http://ellislab.com/forums/viewthread/43349/ (and is somewhat related) I was wondering if there was a chance that file could be developed to replace the built in ‘Category Image’ field and replace it with a ‘File’ field.
I even tried to add a custom category field but with the File extension installed File isn’t an option in the drop down - it seems it only works (as I had expected) on the regular custom filed section.
The current category image field is extremely non user friendly and pretty much makes it impossible for a non technical person to add a new category and supply a nice image to match.
Not sure if this is mentioned already, but on my EE 1.6.1 install, I’m seeing weird behavior with File version 3.1. After I temporarily disable it (to add a new upload location), and then enable it again, the “allow multiple uploads” and “show thumbnails” options get switched from yes to no, and “Resize” gets switched to Auto.
Also, when I upload a group of 7 files, they are all numbered correctly except the last, which is numbered 1. If I then upload another file, it gets a “count” value of “1”, even though the “total number” count is correct, and the previously last file gets its “count” corrected.
Thanks for all the hard and great work, Mark!
I’m seeing weird behavior with File version 3.1. After I temporarily disable it (to add a new upload location), and then enable it again, the “allow multiple uploads” and “show thumbnails” options get switched from yes to no, and “Resize” gets switched to Auto.
I had this happen too - thumbs and multiple got flipped back to ‘off’.
One other thing I noticed is that I can’t use the File field as a single tag and then with opening/closing tags in the same weblog entries tag. I was trying to use File as a mini gallery of pictures and I needed to call the first picture like this: {picfield} but the following pics I was outputting as thumbnails (using Lumis’ Imagesizer plugin), so I needed to call them like: {picfield}{file_url}{/picfield}. Things were getting all confused - I think because the closing tag didn’t know which opening tag was the real one, so I was seeing some double looping, etc.! So, wrapping each area in its own entries tag worked. Although using an embed might work as well.
I’m having trouble taking exporting the table for this extension and importing it to the live version. Both are running mysql 5.0.41.
This is what EE exports:
DROP TABLE IF EXISTS exp_mh_file;
CREATE TABLE `exp_mh_file` (
`id` int(11) NOT NULL auto_increment,
`upload_id` int(11) NOT NULL,
`key` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UPLOAD_KEY` (`upload_id`,`key`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('1', '2', 'allow_multiple', 'no');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('2', '2', 'show_thumbnails', 'yes');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('3', '2', 'clean_filenames', 'yes');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('4', '2', 'rewrite_filenames', 'yes');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('5', '2', 'resize_images', 'auto');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('6', '2', 'keep_originals', 'yes');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('7', '2', 'delete_from_server', 'yes');
This is the error I get:
SQL query:
INSERT INTO exp_mh_file( id, upload_id,
KEY , value )
VALUES (
'1', '2', 'allow_multiple', 'no'
);
MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key, value) VALUES ('1', '2', 'allow_multiple', 'no')' at line 1
I’m using version 3.1 of the extension
Can anyone help?
Yep, my problem is the multiple images. My client uploads multiple images with each entry, and a different amount each time. I’d like to be able to give them labels that aren’t just the filename.
Maybe I will do it as a textarea with a few lines, and use PHP to explode the string by linebreaks. I could tell my client to enter each label on a new line and then iterate through the exploded array with each image. Does anybody have a different/better solution to this?
Edit: I got the PHP method working. It’s not perfect but it works well enough!
Yep, my problem is the multiple images. My client uploads multiple images with each entry, and a different amount each time. I’d like to be able to give them labels that aren’t just the filename. Maybe I will do it as a textarea with a few lines, and use PHP to explode the string by linebreaks. I could tell my client to enter each label on a new line and then iterate through the exploded array with each image. Does anybody have a different/better solution to this? Edit: I got the PHP method working. It’s not perfect but it works well enough!
I just got hit with this same scenario, I may actually try your solution as I can’t think of a better one. Unless maybe a different extension.
I just got hit with this same scenario, I may actually try your solution as I can’t think of a better one. Unless maybe a different extension.
Here’s the code I used (php has to be on output). {pictureNames} is my custom field with the names of the images each on a different line:
<?php
$pictureNames = "{pictureNames}";
$pictureNamesArray = explode("\n",$pictureNames);
$pictureCounter = 0;
?>
{pictures}
<a href="http://{file_url}">{file_thumb_url}</a>
<?php echo "$pictureNamesArray[$pictureCounter]"; $pictureCounter++; ?>
{/pictures}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.