-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
b.imageMode() is sometimes ignored #118
Comments
Issue in CC 2014 too – hmm must have always placed images into a drawn shapes.
|
Ok, so the problem is only happening, if the last two arguments are omitted? Do I understand you correctly? |
Exactly. Seems to only follow the b.imageMode() if those two arguments are present... |
Nevermind, if we figure out the bug and fix it, it does not really matter in which version it appeared first. 😃 |
I think I found the issue.. has to do with the fitting options of only 3 args: I did a quick test, building a 1x1 in the 0,0 corner. Placed an image, checked the fitting options from contextual menu.. Only useful option is 'fit frame to content' (what's being using).. and that creates a centered image, regardless of the anchorpoint prefs. Sooooo.. it seems that another check for 3 args (+/- if b.CORNER) needs to be called further down for transformation back to x, y. |
And there we need to make sure it is an absolute transformation, not relative, else it will mess up for CS6. Unfortunately for me this will be rather difficult to fix, since I only have access to CS6. 😝 |
While in class for most people (~80 % maybe)
b.imageMode()
did not work. Also images were drawn from center by default, which they should not.b.imageMode(b.CORNER)
could not fix this behavior, so it had to be manually fixed by usingb.transformImage()
to the desired position.This might be connected to the InDesign version, on my CS6 at home it works fine, at the uni's CC2015 it had the issue. Unfortunately I cannot test the CC2015 really well, as I don't have it at home.
Maybe someone could give this a try in a version newer than CS6:
This should draw from the top left corner, but in class for most people placed the image's center at the top left corner.
The text was updated successfully, but these errors were encountered: