Hi,
(Sorry if my english is not that good,)

I need some help on this: I want to directly link the image in Preview mode to the original JPG file. So when the user clicks on image in preview mode it opens a new window and displays the original jpg image on its big size. I need this fix cause some images are in wallpaper size and would break site layout in original mode. they need their own empty window....

Any help is greatly appreciated.

Comments

sa3er’s picture

Version: 5.x-1.1 » 5.x-1.0

I had to back 5.x-1.0 release since the 1.1 doesnt work with watermark.

Could you at least tell me what to put in front of 'href" in following line (211) of image.module:

$links['image_size_original'] = array('title' => t('original'), 'href' => 'node/' . $node->nid, 'query' => 'size=_original');

I tried some but no luck:

$file = file_save_upload($field_name, _image_filename($file->filename, NULL, TRUE));

$links['image_size_original'] = array('title' => t('original'), 'href' => $file->filepath);
$links['image_size_original'] = array('title' => t('original'), 'href' => $file->filename);

a hint please.

sa3er’s picture

Oh you're helping too much, thanks. you may need some rest!

I just requested a single line help.

drewish’s picture

Status: Active » Closed (duplicate)