Unable to edit file - fatal error

Hi- I was trying to edit a file after it was uploaded to the Files, and received the following error.

Fatal error: Call to undefined function square_thumbnail() in /home/.schuylerheater/aro/arosheaf.net/collections/stamps/admin/themes/default/files/edit.php on line 16

Also, I am trying to figure out the best practice to upload still images. The first one I uploaded was cropped rather than reduced for a thumbnail image. It's not clear from your documentation how to reduce the original dimensions to a thumbnail size. Is this something that Omeka handles automatically? How are the others preparing their still images for their collections in Omeka?

Thanks.
Amy

Hello - I am still having this problem. Anybody recognize what this error is? Any advice how to fix it will be appreciated.

Hi Amy,

Once a file is uploaded, you cannot edit it from Omeka. You would need to edit in another program, delete the current file from Omeka, and then upload the modified image file.

You can control the sizes of your thumbnails in the admin/settings window. There you may set the constraints of the thumbnails, square thumbnails, and fullsize images that are all derivatives of the original file you upload.

Sometimes in making the square thumbnails Image Magick crops the top and bottom off of a rectangular image. You could either re-crop the image. Or, tweak the theme so that the items/browse page calls for the regular thumbnail image rather than the square thumbnail.

Depending on the theme, you may find that your full image appears but it will looked squished. Some of the themes are designed to provide space for a square image. So, it is up to you on whether to resize the image, switch themes, and/or or to tweak the theme to accommodate your images.

Your new function would look like this if you want to call for the regular thumbnail
<?php if (item_has_thumbnail()): ?>
<div class="item-img">
<?php echo link_to_item(item_thumbnail()); ?>
</div>

Sheila

Also, unfortunately that fatal error made its way into 1.0 beta when somebody removed the deprecated square_thumbnail() function without removing the call to that function.

That has been fixed for 1.0 stable, so in between now and the stable-1.0 release (hopefully in a week or two) the easiest thing would be to retrieve the latest stable version of Omeka with SVN.

Thanks very much, Shelia and Kris. The explanations helped!