or

Imagefield and Imagecache

On this week's Mustardseed Video Podcast, Bob shows you how to deal with images in your CCK content types. There's always a million ways to skin a cat in Drupal, but this method has been consistant and maintained nicely over time. He couples Imagefield with Imagecache to get some simple image handling in as a CCK field.

Would it be possible to have

Would it be possible to have the text around the image?

Thanks

Inline Images

@Miguel
I don't think it is possible to do what you want with image field. Correct me if I am wrong but imagefield creates a div and the html code for an image. This can be placed before or after the body field but not in it. What you want is a way to put your image inline with your post. It would be in the body field. Then the text could wrap around it or whatever.

Bob, what do you use for inline images in your blog posts. I have been using image assist module. It's not bad. Thanks for the great podcast as always.

Bob Kepford
twitter.com/kepford

Float it

Miguel, you should be able to set the div to float:left in the CSS to get the text to wrap around the image.

On the idea of what other podcasts, I'd like to see stuff on developing simple and advanced profiles. I've been meaning to dig into what D6 eventually did concerning nodes as profiles and how they ended up working. I'm hoping they did CCK/Views integration. I'd like to see what I could do to develop employee/member directories using Drupal Profiles and CCK/Views. I think I've seen an ImageField related profile picture module also so that could be a natural progression of this.

Using alpha version 6?

Bob, are you using the alpha version of imagefield for version 6? It seems to be in rapid development and the author says that there is no upgrade path from 5 to 6 yet. I tried an upgrade, and lost all of my imagefield nodes. Imagecache, at least, is in a first beta. Sounds like we need to wait a while for this to mature.

Imagefield Status

Yeah, Imagefield was a bit dodgy for a bit. With the latest releases of everything, it seems to be working well now along with imagecache. As for upgrading, though, you're correct, you'll need to wait for an upgrade path to make the new versins a smooth transition.

However, let me point out, you don't need the new versions to do what I show here...the process is basically the same for all versions of imagefield and imagecache.

please help!

Hello Bob, thanks for this superb video.
This video really helped me to understand imagecache and imagefield.
but with this video, I could create thumbnail teasers which apply only to the default drupal front page.
This is what I achieved using the instructions from your video.
http://farm4.static.flickr.com/3321/3176092540_d11e3b4f60_o.jpg

But I have created my own panel page to be shown as front page,using panels and views.
Have a look at this block, which I intend to show on front page.
http://farm4.static.flickr.com/3343/3176092550_dde89f020b_o.jpg

And my problem is that the thumbnail teaser image I crated according to imagecache and imagefield is not appearing there at all.
Have a look at this last pic to know what I would like it to be.
http://farm2.static.flickr.com/1122/3170401122_378b41d9f1_o.jpg

I would like to have only thumbnail teaser image with no text at all.
So is it possible to have it that way?
Please help me!

-saurabh.

file permissions

usually, when an imagecache images isn't appearing (but the orignal image uploaded and shows correctly when called) it's because the file permissions on the imagecache folder or your temp. folder aren't 777. This means that imagecache can't write/create the images at all, so you end up with nothing. Check your folder permissions...

text to wrap

Hi,

Great tutorial!!

Can anyone give me the actual code snippet to get the text next to the image and confirm it goes in the styles.css? I've tried using float but couldn't get it to work

Thanks!

This information is really

This information is really useful and I couldn't find it from the project page - it explains how to name your shared components such as 1 pixel out and JW player :

http://drupal.org/node/303203

Multiple Images

I would love to see a podcast on how you go about allowing users to upload multiple images at one time using the ImageField Module.

Great screencast

Thanks Bob for the great screencast. I've already watched many of them, and they're by far the best I've come through. Very dynamic, very informative, impressive quality and very easy to understand.

I would really love to know

I would really love to know how to have slideshow pictures in one single post when I upload more than one picture. Thank you!!

Devel

Sweet podcast bob. It was a very simple easy to understand imagecache demo. I've been trying to find out a bit more about drupals' "Devel" modules but it seems like there isn't a ton of tutorials out there. If you happen to be an understanderer of devels' inner workings a simple beginner tutorial would be awesome. ps...specifying lowercase letters only (or telling users the captcha is case sensitive) for your captcha module will get you more comments...it's taken me three times because I forgot about captcha is case sensitive :)

Opposite problem

Bob,

Thanks for the high energy tutorials. I find them very informative and entertaining. After watching the imagecache video I was almost able to accomplish what I wanted. However, I have the opposite problem that one of the commenters has. When I upload an image, say in a blog post, it shows fine. When I preview, however, the image doesn't show. Finally, if I go ahead and save the post, the image shows up in both the teaser and the whole node. Weird! Any ideas?

Thanks,
Gilbert

Great videos for us Drupal

Great videos for us Drupal Newbies. But when I do everything in this video and select anything other than image the image disappears. No thumbnail no medium no nothing. Using the GD image processing. My setup is just like yours but it's not working for some reason.

I have a separate install of Gallery2 that uses GD just fine for resizing so I know it works but I'm not getting any of the results show here.

Imagefield can handle

Imagefield can handle multiple images in one node, and resize and point links to any of those sizes, and more. As for watermarks, I don't know if there is a module for Imagecache, you'll have to research that.

Thumbnails and resized images do not show

I found you videos very helpful. Thank you so much for making learning Drupal easy. But, I have one question on ImageCache. I have installed all the modules you mentioned in you video. Thumbnail images in the teaser and resized images are not showing after I upload pictures. I can see the cropped pictures in imagecache director, but drupal is looking in a different folder? Please help.

Image Type Not Available

Bob,

Your tutorials have been great so far, though I'm having a little problem with the ImageField and ImageCache...

I've installed everything as you recommended; from CCK to ImageAPI. Proceeded to set up Field for Blog Entry, but Image does not seem to be an option. It asks for a Field Type, which only has one choice of "File", though your tutorial shows there should be an option for "Image". It also asks for a Widget Type of "FIle Upload" or "Image". I tried selecting image, but it still doesn't show the image properly. The image only shows up as a square with ? inside of it.

Any thought or feedback would be appreciated.

The following links are a few screen captures showing the module versions just in case I installed the wrong one.
http://www.beyondthebox.com/bob/blog_entry.jpg
http://www.beyondthebox.com/bob/blog_field.jpg
http://www.beyondthebox.com/bob/cck_versions.jpg
http://www.beyondthebox.com/bob/imagecache_versions.jpg

Thanks in advance,

Alan Somerville

Image captions

Images without captions to identify them and to credit photographers, which is a legal requirement? The how-to's for this task is what is driving me nuts. I'd like to be able to do this with cck imagefile/image but boy, seems the only way is to create a content-type for image and have it include a text box for a caption/credit and then to use nodereference to associate it with the image. This, though, results in a drop-down selection list in the create content form that could become quite unwieldy over time. Imagine hundreds of photos. I can also use imce with fckeditor but that means my content has two image handling methods in it, which is fine for me but could become quite confusing to non-techy end-users. So, Bob, what do you do?

Dosn't get the croped image!!! Help!

Hey, great video!

But I do have one problem. The cropped imagecacheimage is saved in sites/default/files/imagefield_thumbs. and that is fine by me... I think. But after I create a new Page and uploade an image in the imagefield I've created the sourcecode shows that the link looks for the image in sites/default/files/imagecache/"nameofpreset"

Why is this?

Many thanks!

//Alex

about the video

Great video Bob you are the King of Drupal!
wonder if it is possible to see the thumbs in the search results.
if you get this one I´ ll pray for you, for a good amount of times
Enought to get you a place in heaven with a suite with top10 clouds view
regards alby