A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Basically you need to migrate the assets from the old solution to the new ImageVault 4 database using the migration tool.
As you have guessed you need to write some code that iterates through all you pages on the sites and calculate the new ImageVault properties from the old.
During migration ImageVault migration tool adds some new meta data to the new images. The field "IV3_DataObjectId" is used to convert old properties to the new.
Basically the internal format of an old ImageVault property contins the id (like "url to image~id~alt text") so you extract the id and use it too lookup the image where IV3_DataObjectId has a matching value in ImageVault 4.
We had a nice demo on this at an EPiServer meetup and I'm sure you can get the slides/demo code if you reach out to Johan at ImageVault.
I interpret the question to be about copying and/or converting 7.5 EPi mediadata and properties where those are linked into IV4 media and properties. Am I correct Joakim?
Hi!
After migrating the ImageVault data using the migration tool the content published to EPiServer needs to be converted as well. Normally this is done by replacing the existing ImageVault 3 properties with Media or MedaiList properties in ImageVault 4 and adding a reference to the migrated file.
Below are the code example from the EPiServer meetup Fredrik was refering to:
This example assumes that you have a side-by-side installation of ImageVault 3 and 4 and that you are using PageTypeBuilder.
The page template has an ImageVaultImage property (ImageType) called "IV3Image"
Start by adding a Meda property to the page template.
[PageTypeProperty(Type = typeof(PropertyMedia))]
[PropertyMediaSettings(Height = 200, Width = 350, ResizeMode = ResizeMode.ScaleToFill)]
public virtual MediaReference IV4Image { get; set; }
To be able to set the PropertyMediaSettings you will need the following class
internal sealed class PropertyMediaSettingsAttribute : Attribute, IUpdatePropertySettings
This should work for instances were the automatic resizing of images are used and the same approach could also be used for images in the free text editor.
We are working on a blog post regarding how to handle manually edited images and more.
/Johan
If you want to do this with EPiServer image properties you need to upload the media to ImageVault first
http://imagevault.se/en/documentation/api-documentation/?page=csharp/examples/upload.html
and then when you got the Id of the media you can store it to the ImageVault media property using the code in the example above.
This can of course be done using a job or external program to iterate all episerver pages instead.
/Dan
Hi,
I have this EPiServer CMS 7.5 site that is up and running, now the customer wants us to install ImageVault 4 on it. The problem I'm facing is that all the current imageproperties needs to be rewritten in my models to ImageVault-properties and when this is done, the current image is lost. Hence the customer needs to repick all images on the whole site!, we don't want that :).
So my question is if there is some trick to migrate the pictures from my current imageproperties to the new ImageVault-property?.