this happens on some images while others are fine sometimes I will get a large part of the draw cut off.
Note: Im working only with .jpg format.
my little script gets the proper height/width values as shown if i would look at the images properties or have it open in photoshop however, the fact remains that some images are cut off while some are not
Here is my syntax. a shortform of my dialog as been included of what i use to trigger open pic with
dialog Pic {
title "Picture"
size -1 -1 57 22
option dbu
button "Open Pic", 1, 9 4 37 12
}
on *:dialog:pic:sclick:1:{
%pic.filepath = $sfile(*.jpg)
%pic.w = $pic(%pic.filepath).width
%pic.h = $pic(%pic.filepath).height
/window -apd @pictures -1 -1 %pic.w %pic.h
drawpic -ms @pictures -1 -1 %pic.w %pic.h $qt(%pic.filepath)
}
Note: while I can keep the vars local I choosed to make them global for now to make sure I see whats written to the var and so far so good all proper values are in. Issue still there.