TinyIMG adds two types of code to your theme:
Script control code
Asset preloading code
Both features create one liquid file each and add one line of code in your theme.
Before making any changes to a theme, ensure you create a backup of the theme. This backup will be essential in case any changes are made incorrectly and you need to restore quickly.
To remove the script control added by TinyIMG from your theme, follow these steps:
Open your theme.liquid file.
Search for "tinyscript".
Locate the line that resembles the following:
{%- if tinyscript -%}{{ content_for_header }}{%- else -%}{% render 'tiny-script-control' %}{%- endif -%}
Replace that line with just: {{ content_for_header }}
Save the changes to your theme.liquid file.
After the change It should look like this:
To remove the asset preloading added by TinyIMG from your theme, follow these steps:
Open your theme.liquid file.
Search for "tiny-img-link-preloade".
Locate the line that resembles the following:
{{'tiny-img-link-preloader.js' | asset_url | script_tag }}
Remove the line entirely.
Save the changes to your theme.liquid file.
Now you can safely remove the 2 remaining files from your theme that tinyimg created:
tiny-script-control.liquid
tiny-img-link-preloader.js
When you open each of the files, you will see a delete button. Click on it to confirm deletion, and those files will be deleted!