I'm attempting to store several variables generated by CE Image's Pair tag, as follows:
{exp:stash:set parse_tags="yes" parse_depth="2"}
{exp:ce_img:pair src="{source_image}"}
{stash:ee_img_original_width'}{width_orig}{/stash:ee_img_original_width}
{stash:ee_img_sized_src'}{made}{/stash:ee_img_sized_src}
{stash:ee_img_sized_width'}{width}{/stash:ee_img_sized_width}
{/exp:ce_img:pair}
{/exp:stash:set}
I've reviewed this post about getting a single var from CE Image, and this one, about grabbing multiple variables from a different tag pair, but I'm not getting anywhere. Thanks in advance!
Corrected Syntax, Per Nate/Mark's Feedback
<h2>Set Vars</h2>
{exp:stash:set parse_tags="yes" parse_depth="2"}
{exp:ce_img:pair src="{source_image}"}
{stash:ee_img_original_width}{width_orig}{/stash:ee_img_original_width}
{stash:ee_img_sized_src}{made}{/stash:ee_img_sized_src}
{stash:ee_img_sized_width}{width}{/stash:ee_img_sized_width}
{/exp:ce_img:pair}
{/exp:stash:set}
<h2>Get Vars</h2>
<p>
Original Width: {exp:stash:get name='ee_img_original_width'}<br>
Path to New Image: {exp:stash:get name='ee_img_sized_src'}<br>
New Image Width {exp:stash:get name='ee_img_sized_width'}
</p>