Skip to content
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

offset get values #10

Closed
GoogleCodeExporter opened this issue Oct 21, 2015 · 5 comments
Closed

offset get values #10

GoogleCodeExporter opened this issue Oct 21, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

hi,

i'm adding some additional function to have the possibility to shift the
zoom croped result image vertical a later maybe horizontal too.

added line 34: 
$zoom_crop_offset_y = preg_replace( "/^[1-9][0-9]*$/", "", get_request(
'zcoy', 0 ) );

modification an line 365:
$cachename = get_request( 'src', 'timthumb' ) . get_request( 'w', 100 ) .
get_request( 'h', 100 ) . get_request( 'zc', 1 ) . get_request( 'q', 80 ) .
get_request( 'zcoy', 0 );

add line 92:
$offset_y = $zoom_crop_offset_y;

and mod line 108:
$src_y = round( ( $height - ( $height / $cmp_y * $cmp_x ) ) / 2 ) + $offset_y;


all done with less knowhow, and a much try and error and very much google :-)

enagble to set a &zcoy=value (pixels) can my positiv or negative value to
shift the croped result verticaly

Original issue reported on code.google.com by michael.lauermann@gmail.com on 23 Nov 2008 at 11:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant