WPCubed Product Support

Load Images from HTML-Page

I just started a convert from an other editor to WPTools. Nearly all works fine, but images.
If I load HTML page the image only shows as border with a cross.
A long journey through the forum and the Internet doesn't bring any new ideas. I have downloaded the compiled WPTools demo. There the image is load correctly.
Are there an hints for me, how i can do it to work?

EDIT: I use GraphicEX library.

Best regards
Oliver

#1 ♥ 0
4.8k Views 2 users read 2 min

Ok i think i have the solution 😉.

I add several units
wphttpget_unit
wpobj_image
WPIOMime (For EML Load)

Now it loads images.

#2 ♥ 0

Ok another Question 😉.

On save document as html the images that copy from clipboard aren't save.

//I use this code on OnPrepareImageforSaving
TextObject.Source := '';
  if TextObject.ObjRef<>nil then
  begin
    TextObject.ObjRef.StreamName := '';
    if(length(SaveHTMLFolder)>0) then
    begin
      inc(FHTMLImgNr);
      TextObject.ObjRef.FileName :=
      TextObject.ObjRef.SaveToFile(
         SaveHTMLFolder,
         Format('image%d', [FHTMLImgNr]), '' );
      if(imageList=nil) then
        imageList:=TStringList.Create;
      imageList.Add(TextObject.ObjRef.FileName);
      TextObject.ObjRef.FileName:=ExtractFileName(TextObject.ObjRef.FileName);
    end;
  end;

This Code is copied from WriteHTML Demo. There it works.
But I cant find the difference between it an my Application.

#3 ♥ 0

Hmm, I use Envision Image Library for showing images in an other Form. If this is compiled in, the images from clipboard aren't saved.

For someone who maybe have same behavior.

#4 ♥ 0
support

Hi,

You probably uses a special image handling unit. That unit needs to implement the SaveToFile method, otherwise it cannot save the imagfes in HTML.

Julian

#5 ♥ 0
This category is archived. No new posts are possible.