I simply selected shape 1 with the direct selection tool marquee that selected it as a group and I extended the frame horizontally.
But no matter what my scale settings were, the wavy bottom got scaled horizontally into longer waves.
How do I prevent this scaling when doing the content aware extend?
Here is the file.
Copy link to clipboard
Hi @Chris P. Bacon,
Thanks for reaching out. In your workflow, dragging corners will scale/ enlarge the object instead of extending it. In this particular file extending can be quickly done by duplicating the layer & placing it at the point where it can match the end and look seamless. Then you can group them all to act like a single object.
I have recorded a small video demonstrating it and attached the SVG.
I hope it helps!
Hi @Anshul_Saini , thanks, I was aware of that solution,
but the issue is that often the pattern is not possible to be made seamless if extending as you suggested: for example in the case of svg objects with brushed edges.
I decided to hand-brush their edges finally anyway, to gain unique objects.
So Illustrator doesn't have the content aware extend feature for vector data, nor for pixel data?
I know hat Photoshop has it for pixel data, like it can extend a grass field, for example, seamlessly.
I don't think it is possible without making it very complicated.
You cannot have that behaviour in SVG as far as I know.
You can simulate it in Illustrator by using a pattern fill and setting the transform options to transform object only. But when you want to move the entire object you must first change the option to transform both otherwise you get the result as shown below.
These are SVG title frames and typographical graphics, so it's essential that they can be horizontally set to custom lenght - without stretching, that's why the content aware extend feature would be great, so they could be extended with the crop tool just by extending the canvas.
Probably some CSS trickery. Web developers do some astonishing things with SVG in combination with CSS. But with that you enter the coding area and as Ton already said, it might get complicated.
In case of shapes with brushed edges (they are great for text columns in magazines) I decided to hand brush the shapes because then they will be unique, each of them. But for title frames like the file attached, I still insist that content aware extend should be able to extend it without stretching it. It's more complicated than a grass pattern. And Photoshop can extend grass for example seamlessly. Anyway I think it's good idea for Adobe to implement content aware extend for SVGs, just like for pixel data in Photoshop. Then you could extend title frames like in my example file simply with the crop tool, extending the canvas with content aware. Photoshop does the attempt, but fails, even if rasterized. How can then extend the grass pattern?
Thanks I will look into the CSS. So far I only used SVG filters for multitone images using fecolormatrix, I posted that earlier somewhere.
The CSS will only work on a website or devices that can interpret it.
So I was assuming that you want to apply this on a web site (because you insist in SVG as a file format). Do you?
Or do you want to use this inside Illustrator?
This is paperback and ebooks, not for the web.
Do you want to make the edits in Illustrator?
Or do you need them to be dynamic on the web (or on a device)?
That is the question.
It's paperback and ebooks.
And where I make the edits, that doesn't matter, but preferably Illustrator.
Your workfile needs to be AI. SVG is only for export, because brushes don't survive in an SVG, they will be exapnded when you export. So you always need two files: the workfile with the artwork for editing in Illustrator and then the SVG for placing in whatever you are publishing.
Great solution. Coud you tell how did you extended it with a brush?
That is a pattern brush. The base elements I used in that pattern brush are still in the file.
What's important when building these elements: there needs to be an invisible rectangle in the background, which defines the repeat. You will notice that this rectangle is slightly narrower than the elements. The black stroke overlaps it slightly.
https://helpx.adobe.com/illustrator/using/brushes.html (brushes in Illutrator)
Glad that this helps you.