145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says

Hello,

I have an urgent question, i hope you can help.

I have an image in my theme folder that I want to crop with aq_resize. Isn’t it supported, cause the following code doesn’t work:
$thumbnail_url = get_bloginfo('template_directory').'/images/noimage.png';
$image = aq_resize( $thumbnail_url,300,200,true );
echo '<img src="'.$image.'" alt="" />';

If I echo $thumbnail_url it shows the correct path. but Aqua Resizer outputs an empty img src.

316 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+2 more
SyamilMJ says

You’re not allowed to resize images outside of wp uploads directory folder, for a good reason..

107 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
mailmilisku says

This is a great plugin. Is it possible to combine feature image or first image in post as the thumbnail?
In case user don’t set up feature image, automatically will use the first post image as thumbnail.
Really appreciate for the simple code here. Thanks in advance.

3711 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

This is a great plugin. Is it possible to combine feature image or first image in post as the thumbnail?
In case user don’t set up feature image, automatically will use the first post image as thumbnail.
Really appreciate for the simple code here. Thanks in advance.

This should be your coding, hence you server the image. It has nothing to do with the plugin..

107 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
mailmilisku says


This is a great plugin. Is it possible to combine feature image or first image in post as the thumbnail?
In case user don’t set up feature image, automatically will use the first post image as thumbnail.
Really appreciate for the simple code here. Thanks in advance.
This should be your coding, hence you server the image. It has nothing to do with the plugin..
I try to use this code :
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <?php $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full' ); $image = aq_resize( $img_url, 655, 255, true ); ?> <img src="<?php echo $image ?>" width="655" height="255" alt="<?php the_title(); ?>" /> </a>
Only output from feature image post. Would you like to give me a simple solution, ion case user not use feature image? So will display first image in post.
3711 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says



This is a great plugin. Is it possible to combine feature image or first image in post as the thumbnail?
In case user don’t set up feature image, automatically will use the first post image as thumbnail.
Really appreciate for the simple code here. Thanks in advance.
This should be your coding, hence you server the image. It has nothing to do with the plugin..
I try to use this code :
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<?php 
    $thumb = get_post_thumbnail_id(); 
    $img_url = wp_get_attachment_url( $thumb,'full' ); 
    $image = aq_resize( $img_url, 655, 255, true ); ?>
    <img src="<?php echo $image ?>" width="655" height="255" alt="<?php the_title(); ?>" />
</a>

Only output from feature image post. Would you like to give me a simple solution, ion case user not use feature image? So will display first image in post.

After $img_url, do a check to see if it is empty or not.. If it is empty, just get the other image..

107 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
mailmilisku says

Only output from feature image post. Would you like to give me a simple solution, ion case user not use feature image? So will display first image in post.

After $img_url, do a check to see if it is empty or not.. If it is empty, just get the other image..

thanks. RubenBristian
Still confuse to implement your notify. I’m not a coder, just a designer.

3711 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

I’m not a coder, just a designer.

Then hire a coder :D

1 post
  • Has been part of the Envato Community for over 5 years
  • Has collected 50+ items on Envato Market
bradleyscott says

My images are hosted on Amazon S3, is there anyway to use this with Amazon S3?

1961 posts Don't Worry, Be Happy
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has referred 200+ members
+8 more
FinalDestiny says

No, it won’t work with external images

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by