solved fix for my photo editor issue

soaringeagle
@soaringeagle
10 years ago
3,304 posts
after months of going back and forth withadobe trying to fix my ophoto editor that works in 1 site not the other they recomended this change in the integration

Hi! Hope you had a nice weekend.

I've spoken with our web team after they looked deeper into the integration. They suggest using this JS URL: https://dme0ih8comzn4.cloudfront.net/imaging/v1/editor.js

Let me know if this works!

-Drew

Adobe Creative SDK Team


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 05/14/15 08:06:09PM
brian
@brian
10 years ago
10,148 posts
Are you using the "hi res" option?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
yes but it doesnt seem to work wether hi or low res


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,148 posts
soaringeagle:
yes but it doesnt seem to work wether hi or low res

The URL they gave you? Did you edit the module/jrGallery/gallery_manipulate.tpl and update the URL to the editor.js to what they gave you?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
no i wasnt sure where to


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
isee about 6 js's heresthe defauld template code

<div id="gallery-save-image" class="success">
    {jrCore_lang module="jrGallery" id=50 default="Press &quot;Save Changes&quot; to save your image modifications"}
</div>

<table width="100%">
    <tr>

        <td style="width:10%">
            <a href="{$jamroom_url}/{$_post.module_url}/image/gallery_image/{$_item_id}/xxxlarge/v={$_updated}" data-lightbox="images">
                {jrCore_module_function function="jrImage_display" module="jrGallery" type="gallery_image" item_id=$_item_id size="xlarge" alt=$gallery_image_name id="gallery-edit-image"}
            </a>
        </td>

        <td class="p20" style="width:90%;vertical-align:middle">

            {* only show this section if an aviary.com key has been entered for the site.*}
            {if isset($_conf['jrGallery_aviary_key'])  && strlen($_conf['jrGallery_aviary_key']) > 2}

                <input id="new_image" name="gallery_alt_img" type="hidden" value="">

                {if isset($_conf.jrGallery_aviary_key) && strlen($_conf.jrGallery_aviary_key) < 20}

                    {if jrCore_get_server_protocol() == 'https'}
                        <script type="text/javascript" src="https://dme0ih8comzn4.cloudfront.net/js/feather.js"></script>
                    {else}
                        <script type="text/javascript" src="http://feather.aviary.com/js/feather.js"></script>
                    {/if}

                    <script type="text/javascript">
                        var featherEditor = new Aviary.Feather({ apiKey: '{$_conf['jrGallery_aviary_key']}', apiVersion: 3, theme: '{$_conf.jrGallery_theme}', tools: 'all', appendTo: '',
                            onSave: function(imageID, newURL) {
                                $('#gallery-save-image').show();
                                var img = document.getElementById(imageID);
                                img.src = newURL;
                                $('#new_image').val(newURL);
                                featherEditor.close();
                            }
                        });
                        function launchEditor(id, src) {
                            featherEditor.launch({ image: id, url: src });
                            return false;
                        }
                    </script>

                {else}

                    {if jrCore_get_server_protocol() == 'https'}
                        <script type="text/javascript" src="https://feather.aviary.com/imaging/v1/editor.js"></script>
                    {else}
                        <script type="text/javascript" src="http://feather.aviary.com/imaging/v1/editor.js"></script>
                    {/if}

                    <script type="text/javascript">
                        {if $_conf.jrGallery_original == 'on'}
                            {jrGallery_get_image_edit_key assign="edit_key" item_id=$_item_id}
                            var featherEditor = new Aviary.Feather({
                                apiKey: '{$_conf['jrGallery_aviary_key']}',
                                timestamp: '{$timestamp}',
                                salt: '{$salt}',
                                encryptionMethod: 'sha1',
                                signature: '{$signature}',
                                hiresUrl: '{$jamroom_url}/{$_post.module_url}/original_image/{$_item_id}/edit_key={$edit_key}',
                                theme: '{$_conf.jrGallery_theme}',
                                tools: 'all',
                                appendTo: '',
                                onSaveButtonClicked: function() {
                                    editor.saveHiRes();
                                    return false;
                                },
                                onSaveHiRes: function(imageID, newURL) {
                                    $('#gallery-save-image').show();
                                    var img = document.getElementById(imageID);
                                    img.src = newURL;
                                    $('#new_image').val(newURL);
                                    featherEditor.close();
                                }
                            });
                        {else}
                            var featherEditor = new Aviary.Feather({ apiKey: '{$_conf['jrGallery_aviary_key']}', theme: '{$_conf.jrGallery_theme}', tools: 'all', appendTo: '',
                                onSave: function(imageID, newURL) {
                                    $('#gallery-save-image').show();
                                    var img = document.getElementById(imageID);
                                    img.src = newURL;
                                    $('#new_image').val(newURL);
                                    featherEditor.close();
                                }
                            });
                        {/if}
                        function launchEditor(id, src) {
                            featherEditor.launch({ image: id, url: src });
                            return false;
                        }
                    </script>

                {/if}

                {if $_conf.jrGallery_original == 'on'}

                    {jrCore_lang module="jrGallery" id=49 default="Edit Image" assign="edit_tag"}
                    <span class="sprite_icon p5" style="cursor:pointer" onclick="launchEditor('gallery-edit-image', '{$jamroom_url}/{$_post.module_url}/original_image/{$_item_id}/edit_key={$edit_key}');">
                        {jrCore_image module="jrGallery" image="editor.png" width=32 alt="{$edit_tag|jrCore_entity_string}"}&nbsp;{$edit_tag}&nbsp;
                    </span>

                {else}

                    {jrCore_lang module="jrGallery" id=49 default="Edit Image" assign="edit_tag"}
                    <span class="sprite_icon p5" style="cursor:pointer" onclick="launchEditor('gallery-edit-image', '{$jamroom_url}/{$_post.module_url}/image/gallery_image/{$_item_id}/1280');">
                        {jrCore_image module="jrGallery" image="editor.png" width=32 alt="{$edit_tag|jrCore_entity_string}"}&nbsp;{$edit_tag}&nbsp;
                    </span>

                {/if}

            {/if}
        </td>
    </tr>
</table>

wich of those do i change


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,148 posts
It's the one on line 48 - let me know if that works and I can update it here in the module for the next release.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
the 1sr 1 with cloudfront url i suppose but want to be sure


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,148 posts
I'm not sure what you are asking. You need to change line 48 from this:
<script type="text/javascript" src="https://feather.aviary.com/imaging/v1/editor.js"></script>

To this:
<script type="text/javascript" src="https://dme0ih8comzn4.cloudfront.net/imaging/v1/editor.js"></script>



--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
yes it works!!1


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,148 posts
soaringeagle:
yes it works!!1

Awesome - I will update the module here with the correct URL as well.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
10 years ago
3,304 posts
that took months to get to the root of the issue
but finaly glad its working


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags