Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Jul 2023
    Posts
    5

    Default Replace Multiple Photos Xara

    When making labels by sheets for customers we usually do a contour cut which we use as the cutline and then the art which is behind it. This is done manually which can prove to be quite tedious and time consuming especially when there is a variety of different labels with different designs. For example if there is an order for 15 different labels of the same size, I'd have to still make different cutline manually. I thought I could make one cutline and simply replace the art with the replace photo option in Xara, but this seems to only work with one image at a time rather than selecting everything and replace all the photos. Is there a way to get this to work or perhaps a way to automate this process via plugins or etc.

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,874

    Lightbulb Re: Replace Multiple Photos Xara

    It depends on the version of your product.

    If you have Live Copies, use that. Change one cutline and image and the others follow.

    If you have Smart Duplication, delete back to the one Master, change it and then SD across the page for a row. SD this row down the page to fill it.

    Code-wise you could create a Placeholder with <img src="imagename.png" width=100% height=100% />

    Add your actual image as the Master of the page and give it an image filename of "imagename". Set its type to lossless so it exports as PNG.
    Change this and the Placeholders follow.

    Here is an example A4 portrait design: Contour Cutline.xar

    Layers
    • Layout - duplicates of the image placeholder
    • Cutline - your design for showing the contour outline
    • Mask - just to hide the Master Image
    • Master Image - use Solo mode to change the picture


    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    Jul 2023
    Posts
    5

    Default Re: Replace Multiple Photos Xara

    This is how I usually have the labels setup pink being the cutline which I export as an ai file, and the art is behind. I cant use SD and duplicate both of them since I think SD only works one at a time. But if I do it the art first then do the cutline and align it manually (as you can see in the picture) it still doesn't work the way I want. The labels on the side are the ones I want to substitute. I'm pretty sure I'm doing something wrong or just simply misunderstanding you, apologies as I'm fairly new to Xara.

    PHOTO: https://i.imgur.com/Jicsc36.png

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,874

    Lightbulb Re: Replace Multiple Photos Xara

    callereight, here is a simplified approach based on my original that ensures correct alignment.

    There are two tricks:
    1. The Image Filename of a single image at a time - you may have to Preview a second time to force Xara to notice. I usually just close and re-open the application. Saving, closing and re-opening the design file also works. This is a Bug that Xara has recorded.
    2. The Linking of an object on a Layer to that Later to hide but ensure the content is still available.

    Detail all in the file: Contour Cutline II.xar

    Acorn
    Last edited by Acorn; 26 July 2023 at 12:10 PM. Reason: helps to include the file!
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5
    Join Date
    Aug 2005
    Location
    London, UK
    Posts
    538

    Default Re: Replace Multiple Photos Xara

    As I understood it, you'd have a page like this, filled with bitmaps arranged in the correct locations so that you can export/print them, and you'd like to be able to use the same layout/placement for different labels (which means just using different bitmaps)...

    Click image for larger version. 

Name:	Chicken.png 
Views:	89 
Size:	373.9 KB 
ID:	133882

    As that page layout is just a bunch of bitmaps in the right places (and the guides or other elements that you have), all you need to do is replace them with new bitmaps: I've drawn my three labels as vectors, I've created a bitmap copy of each one (at 600dpi), and therefore I have each of the three bitmaps in the Bitmap Gallery. I laid out the document above with the chicken label, and I have two others:

    Click image for larger version. 

Name:	Bitmap copies.png 
Views:	71 
Size:	70.1 KB 
ID:	133883

    So to replace the chicken label with one of the other two, I just need to select all of the chicken bitmaps on the page (and don't have them grouped), and then from the Bitmap Gallery, right click on the new bitmap to use and select "Apply as fill"...

    Click image for larger version. 

Name:	Apply as fil.png 
Views:	64 
Size:	37.4 KB 
ID:	133884

    That immediately gives

    Click image for larger version. 

Name:	Changed labels.png 
Views:	68 
Size:	239.4 KB 
ID:	133885

    Isn't that what you wanted to be able to do? It seems pretty simple.
    Attached Files Attached Files
    Last edited by Daniel; 26 July 2023 at 11:40 AM.

  6. #6
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,874

    Info Re: Replace Multiple Photos Xara

    @Daniel, I believe @callereight's important issue is lining up his cutline shapes to all exactly overlay the repeated, replaced image.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  7. #7
    Join Date
    Aug 2005
    Location
    London, UK
    Posts
    538

    Default Re: Replace Multiple Photos Xara

    Quote Originally Posted by Acorn View Post
    @Daniel, I believe @callereight's important issue is lining up his cutline shapes to all exactly overlay the repeated, replaced image.
    I guess we'll find out when they're back, but "I thought I could make one cutline and simply replace the art with the replace photo option in Xara, but this seems to only work with one image at a time rather than selecting everything and replace all the photos"... they're right, there is the ability to replace a photo more than one at a time so in those cases where "there is an order for 15 different labels of the same size", having the guides and layout done the first time over the first photo/bitmap, it's simple to replace the first label's bitmap with the second.

    Applying a bitmap as a fill to grouped objects doesn't work (at least, not in a way that I've ever been able to find useful in 25 years) but having them ungrouped does.

  8. #8
    Join Date
    Aug 2005
    Location
    London, UK
    Posts
    538

    Default Re: Replace Multiple Photos Xara

    If you select the shapes that you'd like to fill and then open the Bitmap Gallery (by pressing F11) and right-click on the photo you'd like to use to fill the shapes. Does selecting "Apply as fill" do what you hoped?

  9. #9
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,931

    Default Re: Replace Multiple Photos Xara

    On a fairly simple basis I'd set up all the images numbered simply 1.jpg, 2.jpg, 3.jpg etc within a folder named 'images'
    Create a xara page/s with placeholders to load:
    <img id="myImg1" src="https://your-sire-name/images/1.jpg" width="170" height="254">
    <img id="myImg2" src="https://your-sire-name/images/2.jpg" width="170" height="254">
    Etc Etc
    Then view each page and print as a pdf.

    To change photos just rename 'images' as 'images-old' and create a new images folder with new images within numbered 1 to whatever.

    You could add js to develop this further if it's a really big job.

    DEMO


    Attached Files Attached Files
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  10. #10
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,874

    Default Re: Replace Multiple Photos Xara

    Quote Originally Posted by Daniel View Post
    If you select the shapes that you'd like to fill and then open the Bitmap Gallery (by pressing F11) and right-click on the photo you'd like to use to fill the shapes. Does selecting "Apply as fill" do what you hoped?
    Daniel that works very well but the resultant resolution of the rendered images is pared down to the size on the page. If my design was 256px square then the image becomes that at 96dpi.

    My approach renders at the original resolution of the Master Image so no loss of fidelity.
    Just tried with a 7.2MB, 2700px square image rendered down to 256px square. The rendered image has a resolution of almost 1,000dpi.
    The other down is you cannot touch up, clip view, rotate or alter the image in the Bitmap gallery without going to the trouble of making a Bitmap Copy of the changes and that process is difficult to Undo.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •