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.

3576 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,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.
3576 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,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.

3576 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,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 4 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?

1797 posts Don't Worry, Be Happy
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Located in United States
  • Made it to the Authors' Hall of Fame
+8 more
FinalDestiny says

No, it won’t work with external images

by
by
by
by
by
by