For a project im working on i need to know how indesign calculates/generate itemtransform
when the element is not rotated the itemtransform = "1 0 0 1 0 0"
then when I rotate the element 90deg then the itemtransform = "1 -0.5 0.5 1 somecordinate someothercordinate"
open indesign >
new Document >
place an rectangle for example >
save as "enter_name_here".idml >
change the name to "enter_name_here".zip >
extract the files to folder >
open Spreads/spread_ud7.xml in notepad++ and find the itemtransform
now go back to indesign, rotate the rectangle and do the above again, then look at the itemtransform how is that calculated in indesign?
why is that and how is it done if have look in almost every documentation but could not find a clear awnser
anyone have an idea?
Find some info inside this PDF:
https://www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/IDML/idml-specification.pdf
i.e. on page 97
Related
I have some audio files that look like this:
I wanted to know if it is possible to delay the trimming process by a specified amount, for example 0.1s, prior to trimming the audio at the end of each silence sections?
The sox command that I use to trim at the end of each silence section is:
for %%i in ("*.wav") do "%_sox%" -V3 "%%~fi" "SilenceTrimBegin-1secclips\%%~ni.wav" silence 1 0.0 -40d trim 0 1 : newfile : restart
Can you assist me in basically leaving some silence before the active audio event? Thanks!
add "pad 0.5 0.5" at the end of the sox recording command to prevent too strict clipping.
please let me know any other system/code I need to include, as I am not as familiar with writing out images to my computer. I am creating 360 png files as follows:
for(theta in 1:360){
ic=as.character(theta)
if(theta<10) ic=paste("00",ic,sep="")
if(theta>=10 & theta<100) ic=paste("0",ic,sep="") # make filenames the same length
fn=paste("c:iris360\\HW4_",ic,".png",sep="") #filename
png(fn,width=1000,height=1000) # save as *.png
p3(X1,X2, r=100,theta=theta,mainL=paste("theta =",theta))
# legend("topleft",pch=16,cex=1.5,col=allcl)
dev.off()
}
system("magick c:iris360\\HW4*.png c:iris.gif")
where p3 is just a function that takes my matrices X1 and X2 and plots the points and their segments(let me know if I need to include it as well). However, I get this error:
magick: must specify image size iris360HW4*.png' # error/raw.c/ReadRAWImage/140.
I am unable to open the gif file, as my mac says it is damaged or uses a file format that preview does not recognize.
Update 1: I replaced fn's declaration with
fn <- sprintf("c:iris360/HW4_%03i.png", theta)
as well as replacing ic with sprintf("%03i", theta) everywhere it appeared, but still got the same specify image size error.
When I run the system command into my terminal, I still get the same error asking me to specify the image size.
Magick needs to know several things (e.g., image size, delay between frames, images to use, destination file name) in order to convert a stack of png into a gif. See GIF Animations and Animation Meta-data
magick -delay 100 -size 100x100 xc:SkyBlue \
-page +5+10 balloon.gif -page +35+30 medical.gif \
-page +62+50 present.gif -page +10+55 shading.gif \
-loop 0 animation.gif
So it looks like you need to change
system("magick c:iris360\\HW4*.png c:iris.gif")
to something more like
system("magick -delay 10 -size 100x100 —loop 0 c:iris360\\HW4*.png c:iris.gif")
I'm trying to plot a discrete brownian path in gnuplot, which involves a lot of overlaping lines. This is how it's displayed in the qt terminal (I have generated the image with a screenshot):
Notice how the overlapping lines get colored in a stronger color, which is beautiful.
If I export it in png, with
set term pngcairo size 1366,768 enhanced
I obtain this:
All the lines have the same intensity. Setting transparent doesn't help, either.
The same happens with this MWE:
set term pngcairo size 1366,768 background '#000000' enhanced
set output "image.png"
unset key
set border 0
unset xtics
unset ytics
set samples 1e6
set xrange [0:0.1]
p sin(1/x) w l lw 0.3
set output
I'm running gnuplot -d each time so my local config does not get loaded. How should I export the plot to obtain the same effect as in the GUI?
Here are some results of my investigation :
I couldn't achieve beautiful results with pngcairo either. Opacity isn't added when 2 curves overlap each other.
Exporting to SVG and converting to PNG looked a bit better, either with inkscape -z -e image.png -w 1600 -h 1200 image.svg or convert -density 3000 -resize 1600x1200 image.svg image.png. This step could be included in gnuplot as a system command.
It is possible to export the qt render to png directly from the qt window. First menu icon on the left → Export to image
This process could in theory be automated directly from Gnuplot, without user interaction. A patch has been submitted : https://sourceforge.net/p/gnuplot/patches/665/. As far as I can tell, it hasn't been yet integrated into Gnuplot 5.0.x
Here is a related discussion on Gnuplot-dev.
If you feel adventurous, you could try to recompile Gnuplot with the applied patch. The submitter might be able to help you.
Very offtopic in this question, but as a workaround I have made a Julia script that replicates the image feeling that I am looking for. I will post it here in case anybody finds it useful.
using Images
function paint(Ny, Nx, iters=1e6; stepsize = 50)
randstep() = rand([-1;1])
x = Nx÷2
y = Ny÷2
M = zeros(Nx,Ny)
for i in 1:iters
rx = randstep()
ry = randstep()
for i in 1:stepsize
x = mod1(x+rx, Nx)
y = mod1(y+ry, Ny)
M[x,y] += 1
end
end
clamped = M/maximum(M)
img = [Colors.RGB(0,mm,0) for mm in clamped]
end
img = convert(Image,paint(1366,768,1e4,stepsize=10))
save("coolbrownianwalk.png", img)
This produces images like this:
i am using
map.fitBounds(arrayofcoordinates)
I am drawing multiple polylines to show path for each users moving on map, using fitBounds() complete path is not visible. I want to remove fitBounds() if I click on a marker to see its path. and after that enable fitBounds() to see all markers moving on map. I do not know if it is possible or not. Please help.
If yes then how ?
any help would be appreciated.
You can use a variable as a flag which will have value 0 or 1 . Write fitBounds() inside if statement like
var boundFlag = 0;
if(boundFlag = 1)
{
map.fitBounds(arrayofcoordinates)
}
To change the value of variable "boundFlag" 0 or 1 you can use custom button on leaflet.
http://leafletjs.com/reference.html#icontrol
I have a PNG image, the image features a shape surrounded by a transparent area:
I want to recreate this image as a path in flex mxml, something like this:
<s:Path data="M 0 0 L 0 100 L 100 100 L 100 0 L 0 0" />
How can I export the path data so that I can use this shape in Flex, is there a program that will do this for me?
Illustrator will export an FXG, as will Photoshop.
My problem was that my original image was a flat file, not a path. This meant that following #www.Flextras.com's answer didn't work for me, the result was an FXG with an image embedded.
The process I used is as follows, I used Adobe Fireworks for this:
1) Magic wand selection
Select the body of the image with magic wand.
2) Convert to path
Right click -> Modify Marquee -> Convert to Path
3) Export as FXG
File -> Export
4) Done
Open the FXG in notepad and extract the path data.