Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon 692 posts 1068 karma points
    Jan 17, 2016 @ 11:39
    Simon
    0

    Import Images for Image Cropper DataType

    Hi Guys,

    Can anyone tell me whether the CMS import would import images and map to an Image cropper field?

    Because I have to import from a database where I have the image link.

    Thank you.

    Kind Regards.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Jan 19, 2016 @ 10:22
    Richard Soeteman
    0

    Hi Simon,

    Just import. The image cropper datatype will work. You don't need to set any additional options.

    Best,

    Richard

  • Simon 692 posts 1068 karma points
    Apr 27, 2016 @ 15:55
    Simon
    0

    Hi Richard,

    How should I map, because I am trying like this :

    /Boats/image.jpg

    but it is not working...

    I tried even without / but not working.

    I have the Boats folder in root and have that image.jpg in it.

    Any help please?

  • Dave Jonker 21 posts 61 karma points
    May 06, 2016 @ 08:41
    Dave Jonker
    0

    Dear Richard,

    I'm having the same issue. I'm working with version 3.5.1 and my doctype has an ImageCropper. When I import the files, the image cropper field shows the crops, but without the file. The files don't get placed in the Media folder. Even if I place the files directly in the Media folder they don't get displayed or imported.

    The XML of the field looks like this after the import:

    <fldPageImage><![CDATA[{src: 'myimage.png', crops: [
      {
        "alias": "NewsNormal",
        "width": 200,
        "height": 200
      },
      {
        "alias": "NewsSmall",
        "width": 120,
        "height": 120
      }
    ]}]]></fldPageImage>
    

    And if I create an item manually it looks like this:

    <fldPageImage><![CDATA[{
      "focalPoint": {
        "left": 0.5,
        "top": 0.5
      },
      "src": "/media/3457/8.jpg",
      "crops": [
        {
          "alias": "NewsNormal",
          "width": 200,
          "height": 200
        },
        {
          "alias": "NewsSmall",
          "width": 120,
          "height": 120
        }
      ]
    }]]></fldPageImage>
    

    So the field is missing "/media/" in the source and it would be nice if the files would be "moved" to the media folder during the import.

    Thanks in advance for the reply.

    Regards (met vriendelijke groet),

    Dave Jonker

    ipsis

    p.s. A nice feature would be to specify a (sub)folder of "media" in which the images are being stored.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    May 06, 2016 @ 09:06
    Richard Soeteman
    0

    Hi Dave,

    This issue is solved in release below. Since Image cropper is a normal upload field it never ends up in media library.

    https://www.dropbox.com/s/xrn2gdzqui38e7g/cmsimport35_2.zip?dl=0

    Hope this helps,

    Richard

  • Dave Jonker 21 posts 61 karma points
    May 06, 2016 @ 09:28
    Dave Jonker
    0

    Thanks / Dank je wel!

    It works now.

    And about the subfolder request; I meant with a standard media selector.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft