Hello, I used the Image Legacy module + File Convert Module to get back image nodes lost during D6 to D7 upgrade.

I got back hundreds of image nodes, complete with titles and descriptions. However, these are just nodes. The images themselves are NOT in D7's native handling of images.

For example, when Media Module presents images, none of the titles and descriptions are there. Media Module just imported all the images files on server and used the file name as title.

My question: how do I get D7 to import titles and descriptions for the images from these image nodes?

thanks in advance.

Comments

joachim’s picture

> However, these are just nodes. The images themselves are NOT in D7's native handling of images.

They're files, so they can be treated as file entities by Media module.

The current migration path is just one of several planned, but which needs either volunteer work or funding to happen -- see other issues for details.

Hetta’s picture

BOUNTY.

$400 to get image legacy to work in such a way that images are native images which can be used in image galleries.
Something similar to the old image galleries.

I'll pay using paypal as soon as image legacy imports images correctly:
* with a possibility to add fields (and/or description or similar text) to each image
(* with a possibility to comment each image -- not an absolute requirement for this bounty)
* with a possibility to use all ex-D6-image -images in D7 image galleries.
(Currently, D6 images cannot be added to D7 image galleries. They can be added to D7 gallery containers, but gallery containers aren't galleries, they're collections of image galleries. No thumbnails shown, just text links.)

(This does require the use of this patch: http://drupal.org/node/1037002 comment #73. Or do it in whatever way works.)

Paging joachim ... the bounty would be higher, but there are a few other show stoppers in getting my site to D7. One being image filter, another being working taxonomy trees.

joachim’s picture

That's great news!

> (Currently, D6 images cannot be added to D7 image galleries. They can be added to D7 gallery containers, but gallery containers aren't galleries, they're collections of image galleries. No thumbnails shown, just text links.)

You're going to have to be a lot more specific though. I don't understand what you mean here at all! What are 'D6 images' and 'D7 image galleries'?

Hetta’s picture

D6 galleries: like this, http://www.henriettesherbal.com/image-galleries/index.html , made with image_gallery

D7 galleries: the module Media Gallery needs to be installed. http://drupal.org/project/media_gallery

(I think the gallery container thingy got me sidetracked, it's not necessary to get image galleries to work in D7, and the patch I mentioned earlier is just "nice to have", it allows more than one set of galleries. For that, apply the patch, configure media module: /admin/config/media/galleries [x] enable multiple galleries and set up some gallery containers under taxonomy: /admin/structure/taxonomy/gallery_collections )

D7 has "add a media gallery" link, but only on empty gallery containers (a bug, I think). (I can't even get it to show on empty gallery containers right now, on localhost, dunno why not and/or what's changed since last I tried, day before yesterday.)

To create a gallery, write /node/add/media-gallery in the URL and select your choice of Gallery collection in the drop-down box.

(Also, the "have to be able to add fields to gallery images" is moot. In structure, galleries -> manage fields admin/structure/taxonomy/gallery_collections/fields lets us add whatever, and I think they'll show IF "(x) show media on a full page" is selected in any given media gallery. Haven't tried it yet, though.)

The main problem is that image legacy images aren't images under D7.

Try it: create a media gallery, click "Add media", look at "My files" -- no legacy images. Look at "Library" -- no legacy images. Upload, well, yes, but that makes image legacy moot.

The image legacy images are found in /admin/content/file, but as type "undefined", not as type "Image".

Let me know if you need more data to work with.

joachim’s picture

Could you explain the structure of these various things?

In D6 image gallery, images are nodes with image module data; galleries are taxonomy terms.

How does your preferred D7 system work?

Hetta’s picture

Gallery containers are taxonomy terms.

Haven't checked what media galleries are, in the database. A kind of node?

Images, sorry, I don't know what they are in D7. I'm actually rather lost with the new image -- I only managed to upgrade localhost a few weeks ago and have fiddled with D7 on and off, trying to get things to work.

If you can get legacy images to get selected in the media gallery (and show as thumbnails in the overview!), that'll work.
If you can use views to make a new gallery view which uses legacy images, that'll work as well.

A gallery shows thumbnails in the overview, and shows larger images in the single image mode. Galleries have pagers on the overview (if needed) and on single images.

Hetta’s picture

Right, this query will make the legacy images into true, selectable D7 images:
(connect to database ...)

UPDATE file_managed
SET type='image'
WHERE type='undefined'

joachim’s picture

> true, selectable D7 images

I still don't know what you mean by this!

Are legacy image files not being properly converted to managed files by the current upgrade process?

Hetta’s picture

No, they're set as type "undefined" in file_managed. They should be type "image".

Once that's in, they're working nicely in D7, show up with thumbnails in media selectors and so on. That means that with that in, image_legacy is a working upgrade solution for image.